用户
 找回密码
 入住 CI 中国社区
搜索
查看: 13576|回复: 7
收起左侧

[HELP] 在LINUX下出现 404 Page Not Found The page you requested was not found.

[复制链接]
发表于 2010-1-30 23:54:28 | 显示全部楼层 |阅读模式
我又有问题了

系统放在window 是可以在  在linux 下 不行

假设“sss”为程序文件夹  

错误为
                404 Page Not Found               
The page you requested was not found.

在logs  里面的

DEBUG - 2010-01-30 23:52:21 --> Config Class Initialized
DEBUG - 2010-01-30 23:52:21 --> Hooks Class Initialized
DEBUG - 2010-01-30 23:52:21 --> URI Class Initialized
ERROR - 2010-01-30 23:52:21 --> 404 Page Not Found --> sss
       


直接访问下面的路径
http://xxx.net/sss/index.php/logins
显示
No input file specified.


附加php。ini
register_globals = off
allow_url_fopen = off

expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

[Zend]
zend_extension=/usr/local/zo/ZendExtensionManager.so
zend_extension=/usr/local/zo/4_3/ZendOptimizer.so
 楼主| 发表于 2010-1-30 23:55:05 | 显示全部楼层
好像LINUX下 可能是与大小写有关

点评

回答正确,我也遇到此类问题,LINUX大小写过敏,要求严格  发表于 2017-8-9 00:23
发表于 2010-1-31 12:29:32 | 显示全部楼层
一般来说就是大小写问题。请根据文档严格执行大小写规定,千万不要用自己的想法强加给 CI。
发表于 2013-5-16 09:23:11 | 显示全部楼层
楼上说的大小写的问题,具体是在哪个文件里的呢?困惑中,我的项目在本地(mac+nginx)一切运行ok,当放到服务器上(linux+nginx),域名解析后,网页就
404 Page Not Found
The page you requested was not found.
查看项目的log 和楼主显示一样
DEBUG - 2013-05-16 09:02:07 --> Config Class Initialized
DEBUG - 2013-05-16 09:02:07 --> Hooks Class Initialized
DEBUG - 2013-05-16 09:02:07 --> Utf8 Class Initialized
DEBUG - 2013-05-16 09:02:07 --> UTF-8 Support Enabled
DEBUG - 2013-05-16 09:02:07 --> URI Class Initialized
DEBUG - 2013-05-16 09:02:07 --> Router Class Initialized
ERROR - 2013-05-16 09:02:07 --> 404 Page Not Found --> adminlogin

已经折腾了好久了 ,从显示 No input file specified. 改了nginx里的 ***.conf(已解决)
现在就停留在404了
发表于 2013-5-16 10:15:00 | 显示全部楼层
解决了 是项目里面 controllers文件夹下面的php文件名必须小写
发表于 2017-8-8 23:27:03 | 显示全部楼层
因为这个404耽误一两天啊…… 我的情况是controller下面一大堆大写的,和一个小写的。我把小写那个改成大写的就行了。
发表于 2017-8-11 23:56:25 | 显示全部楼层
控制器类第一个字母大写。养成好习惯。

本版积分规则