Last active
February 5, 2017 11:14
-
-
Save blogmastigado/ee9e9e306e9ef4d22dd94ff76ce6cb8a to your computer and use it in GitHub Desktop.
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
#After compile your PHP 7 | |
wget http://xdebug.org/files/xdebug-2.5.tgz | |
#Descompressing | |
tar -xzf xdebug-2.5.tgz | |
#Go on directory and execute phpize | |
cd xdebug-2.5/ | |
/opt/php7/bin/phpize | |
./configure --enable-xdebug --with-php-config=/opt/php7/bin/php-config | |
##Make and make install | |
make | |
make install | |
#Location of xdebug.so after 'make install' command /opt/php7/lib/php/20160303-debug/xdebug.so | |
#FOR FPM | |
sudo echo 'zend_extension="/opt/php7/lib/php/20160303-debug/xdebug.so"' > /opt/php/etc/php-fpm.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="/opt/php7/lib/php/20160303-debug/xdebug.so"' > /opt/php/etc/php-fpm.d/20-xdebug.ini | |
sudo echo 'xdebug.remote_enable=1' >> /etc/php/7.0/cli/conf.d/20-xdebug.ini | |
#RESTART | |
sudo /etc/init.d/php-fpm restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment