Run the following commands in your terminal.
Download Xdebug - you will need to follow alternative instructions if you no longer have PHP5 running on your machine.
sudo apt-get install php5-xdebug
The package should change your INI file for you, but just in case you need to edit it yourself and make the following changes: on Ubuntu, usually on / etc / php 5 / apache2 / php.ini - add the following line.
zend_extension="/usr/lib/php5/20110331/xdebug.so"
This path may be slightly different from your system - just make sure that it fully matches the path to the xdebug.so file on your computer. Also do not forget to comment on any links to Zend Debugger - you cannot run both at the same time.
Now restart Apache.
sudo /etc/init.d/apache2 restart
You may also need to enable html_errors. Locate html_errors in the file / etc / php 5 / apache2 / php.ini and make sure it is set to On. A restart of Apache is also required.
html_errors = On
Double check with phpinfo () to make sure everything is installed correctly - you can also configure Xdebug in the php.ini file.
Jarrod Nettles Mar 31 '11 at 18:02 2011-03-31 18:02
source share