Code:
sudo apt-get install php5-dev php-pear
Now install xdebug thru PECL.
Code:
sudo pecl install xdebug
Now we need to find where xdebug.so went (the compiled module)
Code:
martin@martin-dev:/$ find / -name 'xdebug.so' 2> /dev/null
/usr/lib/php5/20060613/xdebug.so
Then edit php.ini:
Code:
sudo gedit /etc/php/apache2/php.ini
Add the following line:
Code:
zend_extension="/usr/lib/php5/20060613/xdebug.so"
Then restart apache for changes to take effect
Code:
sudo /etc/init.d/apache2 restart
安装Xdebug并配置PHP
本文详细介绍了如何通过APT获取必要的PHP开发包,并利用PECL安装Xdebug扩展。此外,还提供了编辑php.ini文件来启用Xdebug的方法及重启Apache使更改生效的步骤。

1880

被折叠的 条评论
为什么被折叠?



