PHP Warning: Module Already Loaded in Unknown on Line 0

PHP Warning: Module already loaded in Unknown on line 0

I think you have loaded Xdebug probably twice in php.ini.

  1. check the php.ini, that not have set xdebug.so for the values extension= and zend_extension=.

  2. Check also /etc/php5/apache2 and /etc/php5/cli/. You should not load in each php.ini in these directories the extension xdebug.so. Only one file, php.ini should load it.

    Note: Inside the path is the string /etc/php5. The 5 is the version of PHP. So if you use another version, you always get a different path, like php7.

PHP Warning: Module 'soap' already loaded in Unknown on line 0

looks like you are loading the 'soap' module multiple times
instead of rep extension /usr/local/lib/php.ini, you should use grep extension /usr/local/lib/php.ini to search the modules loaded

If your ini is in different location, you need to find where is it.

  1. If you got PHP Warning from webpage, you can create a file with this
    as the content:

    <?php
    phpinfo();
    ?> in your browser, search for "Loaded Configuration File" and "Scan this dir for additional .ini files"
  2. If you got PHP Warning when running PHP on the shell, run this on
    shell:

    php -r "phpinfo();" | awk '/^Loaded|^Scan/ {print $NF}'

depends on your installation, besides php.ini you may have ini files in php.d

for my redhat server:

; Note: packaged extension modules are now loaded via the .ini files

; found in the directory /etc/php.d; these are loaded by default.



Related Topics



Leave a reply



Submit