Skip to content

Instantly share code, notes, and snippets.

@creaux
Forked from joseluisq/xdebug_installation.md
Created June 3, 2016 20:55
Show Gist options
  • Save creaux/80c6b3ce7566c31253a0317163c7b45e to your computer and use it in GitHub Desktop.
Save creaux/80c6b3ce7566c31253a0317163c7b45e to your computer and use it in GitHub Desktop.
Install PHP Xdebug on Fedora / CentOS x64

PHP Xdebug installation on Fedora/CentOS x64

First, install xdebug package on system:

$ sudo yum install php-pecl-xdebug.x86_64

Or with DNF:

$ sudo dnf install php-xdebug

Open and edit the php.ini file:

$ sudo vim /etc/php.ini

Add this line zend_extension="/usr/lib64/php/modules/xdebug.so" to the file's end.

Finally, if your have an Nginx server, we should restart the PHP processor php-fpm:

$ sudo systemctl restart php-fpm

Or if you have a Apache server, we should restart the httpd server:

$ sudo systemctl restart httpd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment