Installing XHProf PHP Profiler on Ubuntu

Installing XHProf PHP Profiler on Ubuntu

Last updated:

Update PEAR first of all:

$ sudo pear upgrade pear

Then use pecl to install the xhprof extension:

$ sudo pecl install -f xhprof

Add this to php.ini:

extension=xhprof.so

Restart Apache:

$ sudo /etc/init.d/apache2 restart

Done

now you can run an example by looking at this guide.

Dialogue & Discussion