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!⏎
I would like to know whether upgrading to a new version will mess up with my old apps? recently I start getting such errors as follows:
/etc/cron.daily/0yum.cron:
Error: Package: php-pecl-xdebug-2.1.4-2.el6.x86_64 (epel)
Requires: php-common >= 5.3.3-38
Installed: php-common-5.3.3-27.el6_5.1.x86_64 (@sl-security)
php-common = 5.3.3-27.el6_5.1
Available: php-common-5.3.3-26.el6.x86_64 (sl)
php-common = 5.3.3-26.el6
Available: php-common-5.3.3-27.el6_5.x86_64 (sl-security)
php-common = 5.3.3-27.el6_5
/etc/cron.daily/cleanscratch:
Cleaning /srv/scratch space
/etc/cron.daily/freshclam:
/etc/cron.daily/freshclam: line 15: /usr/bin/freshclam: No such file or directory