I'm running Oneiric as a LAMP development server, and have xdebug installed. It works fine, but since I set up my email so that root mails are forwarded to my gmail, I keep getting the following:
subject:
Cron <root@pingu> [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete
mail body
PHP Warning: Module 'xdebug' already loaded in Unknown on line 0
Every 30 minutes. The cron job is in /etc/cron.d/php5 – it looks like it's to ensure sessions are automatically cleaned.
The cron job looks like it's needed – and is running a PHP script – but why is it complaining about xdebug, and how do I fix it?
Best Answer
Check your php.ini settings; if you have a separate
xdebug.ini
file under/etc/php5/conf.d
containing azend_extension=*.xdebug.so
line, it's possible that it already exists in the main cli/php.ini file too, so when it tries to load the second config file it'll produe the already loaded error message.