2010-11-27 29 views
0

由於這是一個星期五,我不能問我的主機有關這個,但顯然,我的網站上的所有.php頁面都發出了「內部服務器錯誤」...這開始就在現在,我不在我的管理員cp上,我今天對我的網站進行了0次更改,實際上,我現在一個禮拜都沒有改變。所有的PHP頁面給內部服務器錯誤

我主持了幾個論壇,剛剛有些用戶提醒他們正在瀏覽並突然發生這種情況。

相關網站: cudamine.com

錯誤:

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 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

我使用的cPanel X.

我應該擔心這個?某種攻擊或某種東西?所有的HTML頁面都能正常工作,只是.php似乎有這個問題,這是我的主機端問題,還是我可以在星期一之前做任何事情?謝謝你們,如果這是錯誤的地方,很抱歉。這只是我不想在整個週末沒有網站...

在網上閱讀了類似的情況後,我發現了一些.htaccess文件的信息,我找到了這個文件,這是什麼是在它:

RewriteEngine on 

RewriteCond %{HTTP_HOST} ^cudamine.com$ [OR] 
RewriteCond %{HTTP_HOST} ^www.cudamine.com$ 
RewriteRule ^santa\-maria\/forum\/?(.*)$ "http\:\/\/cudamine\.com\/santa\-maria\/\?page_id\=7\/$1" [R=301,L] 

這兩個的RewriteCond是我的鏈接,使用PHP的2 ...我試圖刪除這個文件,但沒有任何改變。

+2

檢查腳本的同一目錄中的`error_log`文件。 – Ruel 2010-11-27 00:32:07

+0

對不起,我不是很瞭解這個服務器的東西,我有我的所有文件在public_html下,似乎無法在這裏找到任何error_log文件... – joao 2010-11-27 00:35:09

+0

您的主機是否有訪問日誌和錯誤日誌可用? 503頁面本身並不是很豐富,但實際的日誌會顯示更多關於究竟發生了什麼的細節。我們無法根據您提供的信息進行調試。 – JAL 2010-11-27 00:39:38

回答

0

絕對檢查錯誤日誌(應在CPanel中可用)。

我看到的一個常見現象是,主機啓用SuPHP(用於PHP腳本的suexec),並且您有組可寫的腳本或包含腳本的目錄。

如果您的錯誤日誌顯示類似「Apache SoftException」的任何內容,那麼這是最可能的原因。您需要更改腳本和目錄的文件系統權限以刪除組「寫入」位。

另一個可能的原因是您的主機已禁用mod_rewrite或刪除了相應的overrides(FileInfo)以使用Rewrite*指令。

0

PHP可能會將其錯誤日誌寫入其他地方而不是標準的Apache error_log。您可以使用ini_get('error_log')檢索日誌的位置。如果該值不是「syslog」,則PHP將其錯誤寫入同名文件。