新站到网 » 资讯 » 互联网络 » 行业资讯 » 文章详细

apache Internal Server Error Apache详细解决500错误

来源:网络 浏览:402次 时间:2021-08-27

今天要把一个服务器升级,系统重装。

必须得先把之前的程序copy到另外的机子上去跑。

第一步,copy文件

第二步,查看另外一台服务器的配置文件,然后找到指定的document。

查看Apache 配置文件:首先 updatedb  然后执行locate httpd.conf

找到httpd.conf之后,查看虚拟目录

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@dummy-host2.pooy.net 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.


使用apache环境开发时,时不时会遇到"internal server error 500",按照翻译,应该是服务器内部错误,难道apache出错了,Apache破损了,答案显然不是这样的,实际上,就是apache无法正常解析文件,所以就抛出这个错误。


那么,产生这个错误的原因常见是什么呢?

一般就是2点:

第一,权限配置问题,文件没有权限进行读取,就会抛出这个错误,这个原因在linux环境对于新手常见。


第二,.htacess配置错误,一种是里面语法有错误,一种是没有开启module_rewrite,而.htacess里面却进行了rewrite.

特别声明:本平台所发布的部分公开信息来源于互联网,转载的目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点,本平台所提供的信息,只供参考之用。不保证信息的准确性、有效性、及时性和完整性。如有侵权请联系qq客服删除,3372575805谢谢合作!
商家免费入驻发布信息