First, install xdebug package on system:
$ sudo yum install php-pecl-xdebug.x86_6Open and edit the php.ini file:
$ vim /etc/php.iniAdd 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:
$ systemctl restart php-fpmOr if you have a Apache server, we should restart the httpd server:
$ systemctl restart httpd
Thanks