-
-
Save hiepnsx/275e7269ba337192fb0182d06f8e5497 to your computer and use it in GitHub Desktop.
install xdebug on centos
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
http://xdebug.org/install.php#configure-php | |
http://blog.jetbrains.com/phpstorm/2013/08/debugger-configuration-validation-with-phpstorm/ | |
on CentOS: | |
1. You need to install PHP’s devel package for PHP commands execution | |
yum install --enablerepo=remi,remi-php56 php-devel php-pear | |
2. Next install GCC and GCC C++ compilers to compile Xdebug extension yourself. | |
yum install gcc gcc-c++ autoconf automake | |
3. Compile Xdebug | |
pecl install Xdebug-2.5.5 | |
4. Find the php.ini file using | |
locate php.ini | |
And add the following line | |
[xdebug] | |
zend_extension="/usr/lib64/php/modules/xdebug.so" | |
xdebug.remote_enable = 1 | |
5. Restart Apache | |
service httpd restart | |
6. Test if it works – create test.php with the following code | |
<?php phpinfo() ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment