PHP Warning: Module already loaded in Unknown on line 0
I think you have loaded Xdebug probably twice in php.ini
.
check the
php.ini
, that not have setxdebug.so
for the valuesextension=
andzend_extension=
.Check also
/etc/php5/apache2
and/etc/php5/cli/
. You should not load in eachphp.ini
in these directories the extensionxdebug.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, likephp7
.
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.
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"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
PHP Date Format /Date(1365004652303-0500)/
Jquery Mobile: How to Correctly Submit Form Data
What's the Best Practice to Set HTML Attribute via PHP
How to Check If a Video Exists on Youtube, Using PHP
How to Fetch All in Assoc Array from a Prepared Statement
Sqlstate[Hy000] [1045] Access Denied for User 'Username'@'Localhost' Using Cakephp
Pre-Declare All Private/Local Variables
PHP Send Mail to Multiple Email Addresses
Create a Comma-Separated String from a Single Column of an Array of Objects
PHP Remove Duplicate Values from Multidimensional Array
How to Type Hint More Than One Type
How to Run the PHP Code Asynchronous
Using Password_Hash and Password_Verify
What Causes: "Notice: Uninitialized String Offset" to Appear
Utf-8 Encoded HTML Pages Show Questions Marks Instead of Characters
How to Find the Date of a Day of the Week from a Date Using PHP