在 openshift 上部署 codeigniter 3.0.1 应用程序
deploying codeigniter 3.0.1 app on openshift
我在使用 WAMP 服务器的本地主机上有一个很好的 运行 应用程序,但我的应用程序在实时服务器上 运行 不正确,404 页面出现 "The page you requested was not found."(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
);
我需要做什么改变?告诉我是否需要任何其他文件,我会 post 它。任何帮助都会很棒。谢谢
检查Model目录和Controller目录下的文件名,名字要大写。
我在使用 WAMP 服务器的本地主机上有一个很好的 运行 应用程序,但我的应用程序在实时服务器上 运行 不正确,404 页面出现 "The page you requested was not found."(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
);
我需要做什么改变?告诉我是否需要任何其他文件,我会 post 它。任何帮助都会很棒。谢谢
检查Model目录和Controller目录下的文件名,名字要大写。