VPS侦探论坛

 找回密码
 注册
查看: 6268|回复: 4

lnmpa只要放置.htaccess文件,所有php页面都无法访问

[复制链接]
发表于 2011-10-1 22:59:52 | 显示全部楼层 |阅读模式

之前以为是规则问题,后面把htaccess文件内容全部清空,放到根目录还是会出错。

Server error!The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.

删除.htaccess文件php正常访问。

lnmpa新人一枚,请军哥指点。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-10-1 23:59:41 | 显示全部楼层


那看一下你的HTACCESS里面写的是什么?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-10-2 00:23:38 | 显示全部楼层

如上所述,空的.htaccess也不行。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-10-2 00:46:59 | 显示全部楼层



看起来像是rewrite_module没有加载,从错误日志里可以看到
perhaps misspelled or defined by a module not included in the server configuration
错误日志。
但是在phpinfo文件里可以看到mod_rewrite模块已启用。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-10-2 11:11:58 | 显示全部楼层

解决了。
.htaccess文件bom信息引起的错误。

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-21 10:36 , Processed in 0.026149 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表