wampserver apache 500 Internal Server Error
2014-08-18 10:07
417 查看
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
排查:
1:打开apache的错误日志apache_error.log,如果出现Invalid command 'RewriteEngine', 那说明apache没有开启rewrite模式
解决:
1:打开Apache安装目录下httpd.conf,搜索“LoadModule rewrite_modulemodules/mod_rewrite.so”,找到这一行,去掉前面的“#”;
2:找到“AllowOverride None”改为“AllowOverride All” 有两个地方需要修改
3:新建.haccess文件,放在当前网站根目录下,在.haccess文件中写伪静态规则,比如:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
4:重启apache
原文地址:http://blog.csdn.net/jiuyueguang/article/details/9350783
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
排查:
1:打开apache的错误日志apache_error.log,如果出现Invalid command 'RewriteEngine', 那说明apache没有开启rewrite模式
解决:
1:打开Apache安装目录下httpd.conf,搜索“LoadModule rewrite_modulemodules/mod_rewrite.so”,找到这一行,去掉前面的“#”;
2:找到“AllowOverride None”改为“AllowOverride All” 有两个地方需要修改
3:新建.haccess文件,放在当前网站根目录下,在.haccess文件中写伪静态规则,比如:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
4:重启apache
原文地址:http://blog.csdn.net/jiuyueguang/article/details/9350783
相关文章推荐
- wampserver apache 500 Internal Server Error(常见问题的解决办法)
- wampserver apache 500 Internal Server Error
- wampserver apache 500 Internal Server Error
- wampserver apache 500 Internal Server Error解决办法
- wampserver apache 500 Internal Server Error
- wampserver apache 500 Internal Server Error
- apache错误:internal server error 500原
- Apache 解决500 Internal Server Error 问题
- Apache 2.2 安装好后新建任意 PHP 文件访问时返回 500 Internal Server Error 解决方法
- ubuntu apache 500 Internal Server Error
- apache Mercurial HTTP Error 500: Internal Server Error问题解决方法
- Status: 500 Internal Server Error
- EBS Webservice Timeout,HTTP Server Return "500 Internal Server Error"
- PHP HTTP 错误 500(Internal Server Error):服务器尝试执行请求时遇到了意外情况。
- Apache + PHP 上传文件时出现Internal Server Error
- Error -26612: HTTP Status-Code=500 (Internal Server Error)
- HTTP/1.1 500 Internal Server Error 的问题!!!
- 解决IE打开页面后发生 HTTP 500 - Internal server error 错误
- JavaWeb开发时遇到火狐 500 Internal Server Error
- nginx提示:500 Internal Server Error错误的解决方法