Posts Tagged ‘755’

cPanel主机500错误的解决方法

星期六, 十二月 29th, 2012 33 views

今天早上打开官网,出现如下字样:

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@flywin.cn 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.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

服务器500内部错误,第一反应是想要发邮箱给服务商让其重启。后来研究了下,怀疑是服务商更新了系统功能后产生了某些冲突。网上查了下基于cPanel的主机出现该错误的原因大致是权限问题。

进入cPanel->Legacy 文件管理器,看了下public_html的权限为750,于是修改成755,刷新一下还是500错误。怀疑是没有生效,于是修改为644之后,提示403错误浏览权限不足。再改回755后,网站成功访问。

具体原因不明,可能是服务器更新了新Mod安全规则而.htaccess未得到修改,网站出现500错误。
其他资料给出的建议大都是——文件夹权限要设置为755或者更低,文件权限要设置为644或者更低。
这里Mark一下,有朋友知道具体原因的可以留言讨论。

BeiTown
2012.12.29