[BlueOnyx:13622] Re: cron messages

Steffan Noord mailinglist at tikklik.nl
Mon Sep 2 07:27:19 -05 2013


Its a behavior i see a lot
My opiniun is that it has to do with the php.ini file
And suPhP

/etc/php.ini file loads mcrypt
extension=/usr/lib/mcrypt.so


and the vhosts/php.ini 
also loads the mcrypt


in the httpd/error_log
i see a lot of sites with the same error
in my error logs are 29017 lines
 26184 lines of the is mcrypt warning


-----Oorspronkelijk bericht-----
Van: blueonyx-bounces at mail.blueonyx.it
[mailto:blueonyx-bounces at mail.blueonyx.it] Namens Michael Stauber
Verzonden: maandag 2 september 2013 13:42
Aan: BlueOnyx General Mailing List
Onderwerp: [BlueOnyx:13621] Re: cron messages

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
_______________________________________________
Blueonyx mailing list
Blueonyx at mail.blueonyx.it
http://mail.blueonyx.it/mailman/listinfo/blueonyx




More information about the Blueonyx mailing list