Skip to content

Instantly share code, notes, and snippets.

@waspar
Forked from joseluisq/xdebug_installation.md
Created August 21, 2019 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waspar/68a39b0068ad7bd90bdd62ce93881e96 to your computer and use it in GitHub Desktop.
Save waspar/68a39b0068ad7bd90bdd62ce93881e96 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

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

Finally, verify if xdebug extension is loaded:

php -r "echo (extension_loaded('xdebug') ? 'xdebug up and running!' : 'xdebug is not loaded!');"

// xdebug up and running!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment