PHP Warning: mcrypt

I'm getting the following error message and would like to eliminate it:

PHP Warning: Module 'mcrypt' already loaded

It arises out of this cron job:

Cron <root@duster> [ -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

I did poke around the web a bit for an answer and didn't stumble on to any helpful suggestions. I'd appreciate any help you can give me on this.

Status: 
Active

Comments

Howdy -- it sounds like there may be two different areas in the PHP config where mcrypt is being loaded.

If you run the command "php -v" on the command line, do you receive that mcrypt warning amongst the other PHP output?

You'd want to review the file "/etc/php5/cli/php.ini", as well as the various .ini files in "/etc/php5/conf.d/", in order to find where the mcrypt modules are being loaded.