Install Xdebug php debugger on WebFaction

Web Development — Mark @ 11:23 pm

This post will detail how to install Xdebug on a WebFaction hosting account:

http://docs.webfaction.com/software/php.html contains useful information but may be inaccurate depending on which version of PHP your application is configured to use.

1. Unpack the tarball: tar -xzf xdebug-2.x.x.tgz.

2. cd xdebug-2.x.x

3. Run phpize – the command for this will depend on which PHP version your application uses. For example, in your Domains/Websites > Applications, if your web app is using PHP 5.4 your phpize command will be phpize54 located in /usr/local/bin

4. ./configure –enable-xdebug –with-php-config=/usr/local/bin/php54-config

5. Run: make

6. cp modules/xdebug.so /home/<username>/modules

7. add the following line to your web application php.ini (/home/<username>/webapps/<webappname>/php.ini:
zend_extension=”/home/<username>/modules/xdebug.so”

8. Verify installation by creating a phpinfo.php page containing “<? phpinfo(); ?>”. Load it in a browser and
look for the info on the xdebug module. If you see it, you have been
successful!

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2016 Mark Stahler – Blog | powered by WordPress with Barecity