Follow these simple steps to install Xdebug on Ubuntu 10.4. These instruction were taken from http://scottfaisal.com/installing-xdebug-on-ubuntu-10-04/.
- Install Xdebug:
sudo apt-get install php5-xdebug
- Open the xdebug.ini file using the following command:
sudo gedit /etc/php5/apache2/conf.d/xdebug.ini
- Edit the xdebug.ini file so that it has the following:
; configuration for php xdebug module zend_extension="/usr/lib/php5/20090626/xdebug.so" xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000
- Restart Apahe using the following command:
sudo /etc/init.d/apache2 restart
- If successful, you will see Xdebug copyright information when you open phpinfo()