簡體   English   中英

訪問域/文件夾名稱時出現500 Internal Server Error

[英]500 Internal Server Error when accessing domain/foldername

我的網站上出現500 Internal Server Error。 完整訊息:

Internal Server Error

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

Please contact the server administrator at webmaster@subxchange.com 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
....

有人知道如何解決嗎?

這是一個權限問題,除了rwx之外,您還需要設置正確的用戶和組所有權:

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

並確保設置了正確的public_html屬性:

chmod 755 -R /home/subxchange/public_html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM