-
-
Save SvenAlHamad/007fc64c3ed6e6a6b4bf to your computer and use it in GitHub Desktop.
Install xdebug from sources php7.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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