Username Username - 1 year ago 169
Linux Question

PHP Warning: Xdebug MUST be loaded as a Zend extension

Here's the error I'm getting:

PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
PHP Warning: Module 'xdebug' already loaded in Unknown on line 0


This is from my php.ini file:

; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626"
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.3.so"
extension=xdebug.so
zend_extension="xdebug.so"


The file
xdebug.so
does exist at
/usr/local/lib/php/extensions/no-debug-non-zts-20090626


I haven't made any changes and my server has a fresh install of cPanel. Anyone know what would be causing this to happen or see any issues with the information above?

Answer Source

For anyone else who is having this issue, I updated this in my php.ini file and it fixed the error:

; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626"
zend_extension = "/usr/local/IonCube/ioncube_loader_lin_5.3.so"
zend_extension = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
extension = "pdo.so"
extension = "pdo_sqlite.so"
extension = "pdo_mysql.so"
extension = "sqlite.so"