2011-10-12 39 views
1

我想跨越到mint11,但xampp安裝讓我頭疼!Xdebug安裝,將無法在Linux上工作Mint11

因此,我安裝了xampp,然後通過xdebug頁面安裝了xdebug,(我使用了定製安裝,因此我的xdebug文件可以)。我嘗試在NetBeans中進行調試,但沒有任何內容,它表示正在等待連接。我可以看到,它通過的phpinfo(安裝),但是當我嘗試打

$php -i | grep xdebug 

輸出告訴我,remote_enabled是關閉的,雖然我在php.ini編輯它。 另外,我得到這個開頭:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysql.so' - /usr/lib/php5/20090626+lfs/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysqli.so' - /usr/lib/php5/20090626+lfs/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0 
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pdo_mysql.so' - /usr/lib/php5/20090626+lfs/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 
/etc/php5/cli/conf.d/xdebug.ini 
+0

檢查ini文件指向一個有效的庫 – marinara

+0

你的意思是我的.so文件或? – Nebbs

+0

對不起,我是一個LAMP dilettante – marinara

回答

0

的[phpinfo()函數]輸出告訴我,remote_enabled是關閉的,雖然我在php.ini編輯它。

您需要啓用remote_enabled setting,否則它將無法與NetBeans一起使用。

這很可能是你正在編輯錯誤的php ini文件。

您看到的mysql*.so錯誤很可能與xdebug無關,請在不同的.ini文件中查找掃描過的行並對其進行註釋,以免被該錯誤分散注意。

然後找到合適的地方配置XDebug的,最有可能在:

/etc/php5/cli/conf.d/xdebug.ini 
+0

等,所以我編輯php.ini文件,添加必要的行,然後將它們添加到xdebug.ini中? – Nebbs

+0

不,只需編輯xdebug.ini以獲取與xdebug相關的設置。根本不要編輯php.ini,如果您已經將它們放在那裏,請從中刪除xdebug設置。將它們移至xdebug.ini。這是乾淨的方式,它確保事物保持有序。 – hakre

+0

所以,我複製:的zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so xdebug.remote_enable =開 xdebug.remote_handler = dbgp 01​​xdebug.remote_mode = REQ xdebug.remote_host = 127.0.0.1 xdebug.remote_port = 9000 ; xdebug.remote_log = /var/log/xdebug.log => /var/log/xdebug.log 到xdebug.ini,如果我理解正確你。 – Nebbs