Install php xdebug profiler on ubuntu

Install Xdebug

Install the packages from synaptic package manager

sudo apt-get install php5-dev php5-xdebug

Configure php to use xdebug extension

Locate the path to file

[email protected]:/$ find / -name '' 2> /dev/null

An alternative command to find the file is using dpkg and grep as follows

$ dpkg -L php5-xdebug | grep

Now edit the php.ini configuration file as follows :

sudo gedit /etc/php/apache2/php.ini

Add the following line at the end :


To enable profiling add :

xdebug.profiler_enable = 1

Now restart Apache for new php settings to take effect.

$ sudo service apache2 restart

Install kcachegrind


Last Updated On : 7th April 2010

Subscribe to get updates delivered to your inbox

About Silver Moon

Php developer, blogger and Linux enthusiast. He can be reached at [email protected]. Or find him on

Leave a comment