2015-06-20 131 views
0

我在我的网站上收到500内部服务器错误。 全部消息:访问域名/文件夹名称时出现500内部服务器错误

Internal Server Error 

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

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this 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/2.4.10 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Server at subxchange.com Port 443 

图片:http://i.gyazo.com/31e237bca4593dc71b0923ba9c044ae1.png

试图访问我的管理面板如domain.com/admin-panel 不过,我可以访问前端当我收到消息就好了如domain.com。

我已经检查权限和文件夹设置为755,而文件被设置为644

这是错误日志:

[Sat Jun 20 14:57:59.954476 2015] [:error] [pid 7920] [client 213.114.166.90:35286] SoftException in Application.cpp:357: UID of script "/home/subxchange/public_html/admin-panel/index.php" is smaller than min_uid 
[Sat Jun 20 14:56:09.703965 2015] [:error] [pid 7564] [client 213.114.166.90:35213] SoftException in Application.cpp:357: UID of script "/home/subxchange/public_html/admin-panel/index.php" is smaller than min_uid 
[Sat Jun 20 14:56:09.398852 2015] [:error] [pid 7910] [client 213.114.166.90:35198] SoftException in Application.cpp:357: UID of script "/home/subxchange/public_html/admin-panel/index.php" is smaller than min_uid 
.... 

是否有人有任何想法如何解决这个问题?

+0

的http:// stackoverflow.com/questions/9711085/uid-of-script-home-public-html-index-php-is-smaller-than-min-uid – splash58

回答

0

这是一个权限问题,你需要另外正确的用户和组所有权设置为RWX:

chown -R www-data:www-data /home/subxchange/public_html 

并确保正确的属性public_html设置:

chmod 755 -R /home/subxchange/public_html 
+0

我尝试了以下方法:'chown -R nobody:nobody/home/subxchange/public_html/admin-panel /'但没有发生任何事情,我应该输入某种passwo RD? – Muki

+0

检查用户运行PHP服务器进程。在'home/subxchange/public_html'中运行'ls -l'。尝试在'public_html'回答'admin-panel'上运行命令。 –

+1

太棒了,工作得很好!谢谢您的帮助! – Muki

相关问题