Skip to content
Advertisement

PHP Warning: Module already loaded in Unknown on line 0

On Mac OSX Mavericks using homebrew php55 whenever I run a a php command I get the following error message (everything runs fine it’s just annoying)

JavaScript

I ran

JavaScript

and the output was

JavaScript

Checked in the php.ini file and the only place intl is loaded is at the top and it’s commented out. The other files contents look something like:

JavaScript

where the contents after the last slash is the extension.

I’m not sure where else to look.

Any help is appreciated

Advertisement

Answer

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.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement