Skip to content

Instantly share code, notes, and snippets.

@hiyali
Forked from kamilZ/xdebug-install-php7
Created October 9, 2016 11:52
Show Gist options
  • Save hiyali/292e02283d3f76e2c4e7ebb2335b3373 to your computer and use it in GitHub Desktop.
Save hiyali/292e02283d3f76e2c4e7ebb2335b3373 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