Skip to content

Instantly share code, notes, and snippets.

@SvenAlHamad
Forked from kamilZ/xdebug-install-php7
Created February 6, 2016 21:56
Show Gist options
  • Save SvenAlHamad/007fc64c3ed6e6a6b4bf to your computer and use it in GitHub Desktop.
Save SvenAlHamad/007fc64c3ed6e6a6b4bf to your computer and use it in GitHub Desktop.
Install xdebug from sources php7.0
sudo apt-get install php7.0-dev
wget http://xdebug.org/files/xdebug-2.4.0rc2.tgz
tar -xzf xdebug-2.4.0rc2.tgz
cd xdebug-2.4.0RC2/
phpize
./configure --enable-xdebug
make
sudo cp modules/xdebug.so /usr/lib/.
#FOR FPM
sudo echo 'zend_extension="/usr/lib/xdebug.so"' > /etc/php/7.0/fpm/conf.d/20-xdebug.ini
sudo echo 'xdebug.remote_enable=1' >> /etc/php/7.0/fpm/conf.d/20-xdebug.ini
#FOR CLI
sudo echo 'zend_extension="/usr/lib/xdebug.so"' > /etc/php/7.0/cli/conf.d/20-xdebug.ini
sudo echo 'xdebug.remote_enable=1' >> /etc/php/7.0/cli/conf.d/20-xdebug.ini
#RESTART
sudo service php7.0-fpm restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment