出现Internal Server Error错误的解决技巧
访问网站提示“Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request”
错误提示的意思是:访问遇到一个服务器内部错误或错误的配置,无法完成访问请求。
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, add.com@phpstudy and inform them of the time the error occurred, and anything you might have done that may have caused the error
出现这种错误的原因可能有三种:
1.入口文件未找到
2.hataccess文件出错
3.apache里重写未开启
在apache配置文件httpd.conf中搜索
AllowOverride None
然后改为AllowOverride All
然后在找到
LoadModule rewrite_module modules/mod_rewrite.so
把这个前面的“#”号去掉,就是去掉注释,然后重启apache.
出现这种提示原因:主机的纯linux环境下的php虚拟主机服务器为了保护用户站点安全,全局设置了虚拟主机根目录禁止高于755权限运行,如果程序文件中设置了777的权限,就有可能导致这类的错误提示。
解决方法:登陆FTP或文件管理器,检查站点目录文件权限设置,将文件夹权限设置为755,单个文件权限设置为644。这样设置后,问题就可以解决,同时也不会影响网站的所需要的写入权限,满足网站正常运行。
责任编辑: webmaster >>> 百度上搜索 谷歌上搜索
点击复制本连接 (http://www.hugesky.com/showarticle.php?id=6808)>>> 相关资讯:
【声明】: 以上文章或资料除注明为电脑技巧原创或编辑整理外,均为网络收集整理或网友推荐。以上内容以共享、参考、研究为目的,不存在任何商业目的。 未注明作者或出处的文章,可能资料来源不规范。如有涉及版权请给予及时联系更正或予以删除。 |