When i run a php script from the command line like below
php test.php
i get following output
PHP Warning: Module 'memcache' already loaded in Unknown on line 0
PHP Warning: Module 'apc' already loaded in Unknown on line 0
how do i fix or remove these module warnings ? I checked the php.ini in
etc/php.ini
output of
php -i | grep php.ini
PHP Warning: Module 'memcache' already loaded in Unknown on line 0
PHP Warning: Module 'apc' already loaded in Unknown on line 0
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
i dont see any loading or any reference to these two modules in there ...
please help
I was getting same error,
You need to find module (.ini) which is getting loaded more than once and delete one of them,
Its possible that these modules are listed twice and so you get error "Already loaded". Find out which configuration files are loaded
This will tell you which .ini files are loaded and parsed (Additional .ini files parsed).
Look at the specific files and comment out the second occurrence (as follows)