服務器升級到PHP 5.6後,我的SilverStripe網站出現問題。我的虛擬主機將服務器從PHP 5.3升級到PHP 5.6,現在每個頁面上都會出現500服務器錯誤。500內部服務器錯誤使用SilverStripe
從SilverStripe的消息是:
Sorry, there was a problem with handling your request.
在服務器錯誤日誌文件中沒有錯誤項。 在服務器訪問日誌,你可以看到500錯誤:
文件ERROR: [09/Mar/2016:11:12:07 +0100] "GET /Security/login?BackURL=%2Fadmin HTTP/1.1" 500 11398 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36"
下一個條目OK:
[09/Mar/2016:11:12:08 +0100] "GET /themes/ustheme/css/us.style.css HTTP/1.1" 304 0 " http://www.example.com/Security/login?BackURL=%2Fadmin " "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36"
如何調試和解決這個問題?
看看服務器錯誤日誌 – Jens
你試過運行'/ dev/build'嗎?有時你只需重建清單。 – bummzack
[/ dev/build]也會返回錯誤:「對不起,處理您的請求時出現問題。」 – Mitch