linux系統(tǒng)下xdebug php5.6擴(kuò)展安裝
2016-12-13 17:18:03
13525
1.源碼下載地址:http://www.tjdsmy.cn/download.php 選擇Xdebug 2.5.0rc1source進(jìn)行下載,將下載文件放入ubuntu目錄下。 2.解壓配置安裝
tar -zxvf xdebug-2.5.0rc1.tgz
cd xdebug-2.5.0RC1/
/usr/local/server/php/bin/phpize
./configure --with-php-config=/usr/local/server/php/bin/php-config
make
make install
將zend_extension = /usr/local/server/php/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so添加至php.ini中,重啟php-fpm;在擴(kuò)展中即可查看已經(jīng)成功添加的擴(kuò)展模塊;
方法綜述:利用/usr/local/server/php/bin/php -i >outputphp.txt將php信息輸出至txt,復(fù)制信息至下面鏈接中http://www.tjdsmy.cn/wizard.php,點(diǎn)擊output操作命令說明; 添加xdebug配置參數(shù)至php.ini中
xdebug.remote_host = 127.0.0.1
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.remote_handler = dbgp
xdebug.remote_mode = req
由于此處的端口號(hào)與 nginx與php-fpm通信端口號(hào)重復(fù),所以修改nginx.config與php-fpm.config 中的端口號(hào)為9001 3.chorme安裝擴(kuò)展xdebug的擴(kuò)展助手插件,安裝完畢之后, 打開該插件的options, 設(shè)置IDEKey為PhpStorm
會(huì)員登錄
賬號(hào)登錄 還沒有賬號(hào)?立即注冊