Installing Xdebug on Ubuntu LAMP Stack Using APT
This assumes you have installed your LAMP stack using APT (the default LAMP stack in Ubuntu not xampp for linux). It has never got easier to install xdebug using APT compared to compiling it from source. If you don’t know what is xdebug, its uses and benefits, check out my post here and here. As opposed to compiling it from source, you just need to do :
sudo apt-get install php5-xdebug php5-dev
The configuration file for xdebug is located at :
/etc/php5/conf.d/xdebug.ini
You can check out my post here on configuring xdebug. Then restart apache 2
sudo /etc/init.d/apache2 restart


