2012-12-04 88 views
0

我有一個PHP網站與cPanel託管。 昨天,我改變了某些目錄列表(使用索引管理器)。內部服務器錯誤 - PHP的 - cPanel

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 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 

我不知道如何解決這個!請幫忙!!

回答

3

這是你的htaccess錯誤。 在文本編輯器中打開.htaccess。用ErrorDocument的行應該是這樣的:

ErrorDocument 404  /404.html 
+0

(正如你看到的,它應該有後2個東西,你似乎只有一個。也許是忘記了一個空間,或許忘記了'404',類似的東西。) – Nanne

+0

問題與404 Not Found'錯誤有什麼關係? 'ErrorDocument'指令中的錯誤並不意味着它必須是'ErrorDocument 404'。 –

+0

好的,明白了!謝謝,它解決了這個問題! @桑德羅斯 - 你是救世主:) – weber

0

嘗試檢查這個錯誤日誌:

/usr/local/apache/logs/error_log