在openshift上部署codeigniter 3.0.1 app

时间:2016-05-06 09:01:24

标签: php codeigniter openshift

我在使用WAMP服务器的localhost上有一个很好的运行应用程序,但我的应用程序在实时服务器上运行不正常,404页面显示为"找不到您请求的页面。" (http://testcode-researcherloby.rhcloud.com/
我似乎无法在配置中出现问题,我也测试了simpe CI应用程序,但它运行正常。 这是我的config.php文件中的路径设置

$config['base_url'] = "http://" . $_SERVER['HTTP_HOST'];

这是database.php文件

$active_group = 'default';
$query_builder = TRUE;

$db['default'] = array(
'dsn'   => '',
'hostname' => 'localhost',
'username' => '', //for security purpose i'm removing username
'password' => '', //and password but i have checked them, they are right
'database' => 'testcode',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => TRUE,
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE

);

我需要做些什么改变?告诉我是否需要任何其他文件我会发布它。任何帮助都会很棒。感谢

1 个答案:

答案 0 :(得分:0)

检查Model目录和Controller目录内的文件名,第一个名称应该是capital。

相关问题