郁闷死的权限问题-php主机的500错误解决思路以及方法-不是所有的主机都可以设置777权限的。像今天换回Lp(lunarpages)的主机,本来是在门户通的空间上打包的zip文档,按说这样拿到lunarpages的php主机上应该是通用...

谷子猫博客

一个简单爱分享的小站!^_^!
首页>> 技术文档 >>郁闷死的权限问题-php主机的500错误解决思路以及方法
不是所有的主机都可以设置777权限的。

像今天换回Lp(lunarpages)的主机,本来是在门户通的空间上打包的zip文档,按说这样拿到lunarpages的php主机上应该是通用的了,但是老是显示500错误,具体提示如下:



Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] 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.


--------------------------------------------------------------------------------

Apache/1.3.41 Server at www.xgiu.com Port 80


按照它提示的错误,进lunarpages的cPanel后台查看Error Log(错误事件日志?)

看到的记录如下:



[Thu Jul  2 20:32:16 2009] [error] [client 72.46.130.130] File does not exist: /home/file/public_html/500.shtml
[Thu Jul  2 20:32:16 2009] [error] [client 72.46.130.130] Premature end of script headers: /home/file/public_html/blog/install/install.php
SoftException in Application.cpp:601: Directory "/home/file/public_html/blog" is writeable by group
[Thu Jul  2 20:32:15 2009] [error] [client 72.46.130.130] File does not exist: /home/file/public_html/500.shtml
[Thu Jul  2 20:32:15 2009] [error] [client 72.46.130.130] Premature end of script headers: /home/file/public_html/blog/install/install.php
SoftException in Application.cpp:601: Directory "/home/file/public_html/blog" is writeable by group
[Thu Jul  2 20:32:04 2009] [error] [client 72.46.130.130] File does not exist: /home/file/public_html/500.shtml
[Thu Jul  2 20:32:04 2009] [error] [client 72.46.130.130] Premature end of script headers: /home/file/public_html/blog/install/install.php
SoftException in Application.cpp:601: Directory "/home/file/public_html/blog/install" is writeable by group
[Thu Jul  2 20:32:03 2009] [error] [client 72.46.130.130] File does not exist: /home/file/public_html/500.shtml
[Thu Jul  2 20:32:03 2009] [error] [client 72.46.130.130] Premature end of script headers: /home/file/public_html/blog/install/install.php
SoftException in Application.cpp:601: Directory "/home/file/public_html/blog/install" is writeable by group



SoftException in Application.cpp:601: Directory "/home/file/public_html/blog/install" is writeable by group

模块解析出错,因为 install 目录有组写入权限。

按照这个说法,就把 install 修改权限为775 ,然后问题解除。

查后台还是有些小错误提示,不过我的博客既然正常了,就懒得管那些小问题了,呵呵~~

×

感谢您的支持,我们会一直保持!

扫码支持
请土豪扫码随意打赏

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

打赏作者
版权所有,转载注意明处:谷子博客 » 郁闷死的权限问题-php主机的500错误解决思路以及方法
标签: 免费 空间 教程 原创 代码 资源

发表评论

路人甲

网友评论(0)