簡體   English   中英

內部服務器錯誤-PHP-cPanel

[英]Internal Server Error - PHP - cPanel

我有一個cPanel托管的PHP網站。 昨天,我更改了某些目錄列表(使用索引管理器)。 我最初將所有目錄上的設置從“默認系統設置”更改為“無索引”,然后開始出現以下錯誤:

Internal Server Error

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

Please contact the server administrator, webmaster@***.*** 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 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

然后,我將所有設置恢復為原始設置,但仍然收到相同的錯誤。

錯誤日志中顯示以下錯誤-

[Tue Dec 04 01:20:54 2012] [alert] [client 119.226.234.18] /home/***/public_html/.htaccess: ErrorDocument takes two arguments, ErrorDocument Apache configuration directive

我不明白該如何解決! 請幫忙!!

這是您的htaccess錯誤。 在文本編輯器中打開.htaccess。 ErrorDocument行應如下所示:

ErrorDocument 404     /404.html

嘗試檢查此錯誤日志:

/usr/local/apache/logs/error_log

暫無
暫無

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

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