問題描述
最近我的 ISP 將我們的網(wǎng)站切換到 IIS7.0 高可用性集群.該網(wǎng)站在 PHP5.2.1 上運行,我只能上傳文件(因此沒有注冊表調(diào)整).我之前測試過該網(wǎng)站,一切似乎都在運行,但現(xiàn)在結(jié)帳頁面失敗了:
<塊引用>500內(nèi)部服務器錯誤.您要查找的資源有問題,無法顯示.隨著錯誤消息的出現(xiàn),這不是很有用.我試過了:
ini_set('display_errors', 1);ini_set('error_log', $file_php_can_write_to );
但兩者似乎都沒有做任何事情.
有人知道如何獲得更好的調(diào)試輸出嗎?
Edit : 看起來我們有一個 serverfault 中的類似問題.檢查一下
關(guān)閉 IIS7 自定義錯誤將允許將來自您的應用程序的錯誤響應發(fā)送到遠程客戶端,而不會被 IIS7 的自定義錯誤模塊審查.
您可以通過運行開始>運行>inetmgr.exe"從 IIS7 管理工具執(zhí)行此操作,在左側(cè)樹視圖中選擇您的網(wǎng)站/應用程序/虛擬目錄,單擊錯誤頁面"圖標,單擊編輯功能設置"操作,然后選擇詳細錯誤"
來源
Recently my ISP switched our website to an IIS7.0 high availibility cluster. The website is running on PHP5.2.1 and I can only upload files (so no registry tweaks). I had tested the website before and everything seemed to be working, but now the checkout page fails with:
500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.
As error messages go, this isn't very informative. I've tried:
ini_set('display_errors', 1);
ini_set('error_log', $file_php_can_write_to );
but both don't seem to do anything.
Anyone know how to get better debugging output?
Edit : Looks like we have a similar question in serverfault. Check it out
Turning off IIS7 custom errors will allow error responses from your application to be sent to remote clients without being censored by the IIS7’s custom errors module.
You can do this from the IIS7 Admin tool by running "Start>Run>inetmgr.exe", selecting your website/application/virtual directory in the left-hand tree view, clicking on the "Error Pages" icon, clicking "Edit Feature Settings" action, and then selecting "Detailed Errors"
Source
這篇關(guān)于在 IIS7 集群上運行的 PHP 上調(diào)試 500 內(nèi)部服務器錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!