Internal Server Error

  从网上找的一个PHP网站源码,复制到根目录下运行的时候,提示下面的错误:

  

  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、检查PHP程序的属性是否设置为755,如果PHP程序的属性不是755,那么运行的时候汇报“Internal Server Error”错误。

  2、检查PHP程序所在的当前目录下是否有名为.htaccess的文件存在,此文件会干扰PHP程序的正常运行,如果发现有此文件,修改名称或者删除后在测试。

 

  我是将.htaccess文件删除后,再次运行程序时就正确了。

  我只是解决了问题,但是没有求甚解,如果有哪位大侠知道具体的原因,可以留言并分享给大家,谢谢。


 
posted @ 2017-03-28 13:55  阿木工作室  阅读(1550)  评论(0编辑  收藏  举报