Fullscreen
Loading...
 
Skip to main content
Step-by-step instructions on installing Xdebug on Ubuntu 10.4

Installing Xdebug on Ubuntu

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/Question.

  1. Install Xdebug:
    Copy to clipboard
    sudo apt-get install php5-xdebug

  2. Open the xdebug.ini file using the following command:
    Copy to clipboard
    sudo gedit /etc/php5/apache2/conf.d/xdebug.ini

  3. Edit the xdebug.ini file so that it has the following:
    Copy to clipboard
    ; 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

  4. Restart Apahe using the following command:
    Copy to clipboard
    sudo /etc/init.d/apache2 restart

  5. If successful, you will see Xdebug copyright information when you open phpinfo()


Show PHP error messages