PHP Warning: Xdebug MUST be loaded as a Zend extension

Username :

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?

Username :

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"

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

php extension mcrypt must be loaded

PHP composer xdebug warning

PhpStorm: "Run with coverage" results in "Cannot load Xdebug - extension already loaded"

Install Xdebug extension only for PHP7.1

Zend InputFilter requires intl PHP extension?

PHP 7 FTP extension is not loaded in Windows 7

WAMP php openssl extension activated but not loaded

Laravel Xdebug warning

How to install latest Xdebug 2.2.4 on Zend Server CE 6.3.0 with PHP 5.5.7 on Windows 7

PHP Warning: Module already loaded in Unknown on line 0

Zend Warning Assignment

How to avoid "PHP Extensions “0” must be loaded" errror on magento installation?

Ignoring line *: WARNING: PHP Settings must be modified... Magento

PHP 7.2 - Warning: count(): Parameter must be an array or an object that implements Countable

PHP error: Warning: count(): Parameter must be an array or an object that implements Countable

How to remove PHP Warning : count() parameter must be an array that implements Countable

Would a class loaded with an extension override a plain PHP Composer fallback?

How do I allow php files to be loaded with different extension?

Laravel causes PHP warning (exception not caught) xdebug enabled, otherwise all is fine

How to make Xdebug work on Centos and Zend Studio?

php 7 install throws "Cannot load Zend OPcache - it was already loaded" error

Why is XDebug causing page to stick loading in Visual Studio Code PHP Debug extension?

PHP Fileinfo extension must be installed/enabled to use Intervention Image

"kernel must be loaded first"

PHP Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'cache_dir "/tmp" must be a directory'

configure gearman php extension fail on MacOS - error: unknown type name 'zend_object_value'

How to properly setup VSCode and Wampserver to be able to debug and pause on breakpoint line, using VSCode / PHP XDebug / PHP Debug Extension?

Shortcut to turn PHP xdebug ON

Debugging PHP in Ubuntu (Xdebug)