how to install xdebug on php5 ubuntu

HOWTO: Install xdebug for PHP5

Here is a mini-howto in how to install the xdebug extension with PHP5 in Ubuntu 7.04

This will install xdebug 2.0 (or whatever is latest version in PEAR repository when you try this).


It is assumed you have Apache2 + PHP5 working already.

sudo apt-get install php5-dev php-pear

Now install xdebug thru PECL.

sudo pecl install xdebug

Now we need to find where went (the compiled module).

martin@martin-dev:/$ find / -name ''

Then edit php.ini:

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

Add the following line (my path, your can be difference):


Restart apache

sudo /etc/init.d/apache2 restart

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s