Skip to content

Instantly share code, notes, and snippets.

@zolem
Created June 1, 2015 20:07
Show Gist options
  • Save zolem/a87e74541dc3ea9265ce to your computer and use it in GitHub Desktop.
Save zolem/a87e74541dc3ea9265ce to your computer and use it in GitHub Desktop.
Install xdebug
echo "Installing xdebug"
wget http://xdebug.org/files/xdebug-2.3.2.tgz
tar -xvzf xdebug-2.3.2.tgz
cd xdebug-2.3.2/
phpize
./configure
make
sudo cp modules/xdebug.so /usr/lib/php5/20121212+lfs
sudo sh -c "echo 'zend_extension = /usr/lib/php5/20121212+lfs/xdebug.so' >> /etc/php5/apache2/php.ini"
sudo sh -c "echo 'xdebug.remote_enable=1' >> /etc/php5/apache2/php.ini"
sudo sh -c "echo 'xdebug.remote_handler=dbgp' >> /etc/php5/apache2/php.ini"
sudo sh -c "echo 'xdebug.remote_mode=req' >> /etc/php5/apache2/php.ini"
sudo sh -c "echo 'xdebug.remote_port=9000' >> /etc/php5/apache2/php.ini"
sudo sh -c "echo 'xdebug.remote_connect_back=1' >> /etc/php5/apache2/php.ini"
cd ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment