我已經在通過xdebug和php進行了多次配置,但回到我的舊筆記中,未能幫助我重新配置它。Xdebug和PHP不能在我的服務器上工作
我也做了以下內容:
- 安裝
LAMP
- 安裝
php5-xdebug
- 重新啓動的阿帕奇
sudo /etc/init.d/apache2 restart
- 的
/etc/php5/apache2/conf.d/xdebug.ini
現在看起來是這樣的:
xdebug.ini
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
xdebug.remote_enable=On
xdebug.remote_enable=1
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
我創建一個PHP文件,該文件只包含phpinfo();
當我加載頁面在瀏覽器,我沒有得到一個Xdebug的部分正常包含了像
xdebug.collect
xdebug.dump
xdebug.profiler
所有Xdebug的細節
等等
這次我沒有錯?
The OS is Ubuntu 12.04
PHP version is 5.3.10
Apache version is 2.2.22
Xdebug version is 2.1.0-1
你嘗試格式正確xdebug.ini和檢查,如果它被包含在
到xdebug.so整體配置? – Stormherz 2013-03-05 19:54:37
正常文本編輯器中的文本看起來沒問題。 – oshirowanen 2013-03-05 19:56:12
爲什麼'zend_extension =/usr/lib/php5/20090626 + lfs/xdebug.so'?我有'/ usr/lib/php5/20090626/xdebug.so'(注意+ lfs)(我有相同的操作系統) – hek2mgl 2013-03-05 19:57:16