I have a VPS with cPanel WHM and am trying to enable XDebug. I installed the extension by going to WHM -> Software -> Module Installers -> PHP Pecl -> Manage
and I confirmed it's installed by checking my phpinfo()
page.
The next step is to enable XDebug in my php.ini file, but I'm a little confused how I should go about doing this.
Looking at php.ini in /usr/local/lib
, I see this line at the bottom:
zend_extension="/usr/local/Zend/lib/Guard-6.0.0/php-5.4.x/ZendGuardLoader.so"
However, in WHM -> Service Configuration -> PHP Configuration Editor, there's a "zend_extension" option with this value:
/usr/local/IonCube/ioncube_loader_lin_5.4.so, /usr/local/Zend/lib/Guard-6.0.0/php-5.4.x/ZendGuardLoader.so
So my question is, how should I go about adding the path to XDebug:
/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
To php.ini? I see three ways of doing it and I don't know which is correct:
- I could add it to the comma separated list in WHM
- I could add it in php.ini directly, putting a comma between it and the existing value
- I could put it on a new line in php.ini
Which way is correct?