[英]Xdebug and FastCGI on Apache Server
我正在嘗試在遠程開發站點上安裝Xdebug。 我的php.ini文件中包含以下內容:
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_connect_back=On
xdebug.remote_port = 9001
我將端口設置為9001,因為我知道默認值(9000)將與FastCGI沖突。
但這是行不通的。 通過這些設置,我得到了內部錯誤,並記錄了以下內容:
[Fri Nov 07 15:37:53 2014] [warn] [client 162.201.236.210] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Fri Nov 07 15:37:53 2014] [error] [client 162.201.236.210] Premature end of script headers: index.php
更新:我嘗試更改FcgidBusyTimeout ,但這沒有幫助。
我想念什么? 謝謝
您必須將CDebug設置為自動接受連接,根據請求自動啟動並設置正確的服務器IP。
您還已經在調試客戶端和XDebug實例之間設置了預共享密鑰。
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_host="127.0.0.1"
xdebug.remote_port=9001
xdebug.idekey="my_key"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.