2015-06-20 124 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

相關問題