[BlueOnyx:13621] Re: cron messages

Michael Stauber mstauber at blueonyx.it
Mon Sep 2 06:42:20 -05 2013


Hi Steffan,

> I have setup a cron to use the php.ini from the site
> But everythime the cron runs im getting emails with
> 
> PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
> 
> I have  > /dev/null  at the end of the cronline
> 
> These warnings are also a lot in the httpd error files
> 
> Is there a way to get rid of these messages ?

You have a PHP script that's run from a cronjob? It appears that this
script is loading the Mcrypt module more than once. Another way would be
to fix that, so that it loads the module only once.

Alternatively change your >/dev/null entry in the cronjob to this:

>/dev/null 2>&1

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list