View Full Version : ISPConfig and the CRON feature - Running a php file every day
vaio1
27th October 2009, 12:07
Hi guys,
inside the "Command" field what have I write?
If I write /var/www/web1/web/schedule.php is it correct?
thanks
till
29th October 2009, 09:43
To run php files, you have to use:
/usr/bin/php /var/www/web1/web/schedule.php
vaio1
29th October 2009, 09:45
can I use only the prefix: "php".
For example: php /var/www/web1/web/schedule.php
thanks
till
29th October 2009, 10:19
No, you cant as cron does not know where to find the php binary then.
vaio1
29th October 2009, 10:20
I get this error executing the script in my way:
PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
falko
30th October 2009, 19:38
Which distribution do you use? Is the php-imagick module installed?
vaio1
30th October 2009, 19:54
how can I check if the php-imagick is installed?
falko
31st October 2009, 14:31
Which distribution do you use?
vaio1
31st October 2009, 16:12
CentOs 5.2
falko
1st November 2009, 17:32
What's the output of yum search imagick?
vaio1
1st November 2009, 21:06
Hi Falko,
thanks for your reply. I have already installed it:
Package php-pecl-imagick-2.2.1-3.el5.i386 already installed and latest version
thanks
vaio1
6th November 2009, 09:08
What's the output of yum search imagick?
I have already reply it.
how can I hide the response of the execution of the php file?
Is this correct?
/usr/bin/php /var/www/web1/web/schedule.php >/dev/null
Thanks
till
6th November 2009, 13:00
Yes, thats correct. It redirects the std out to /dev/null
vaio1
9th November 2009, 14:41
Nothing to do!
Every time that the cron starts I get an email with the following strings:
PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
any idea?
till
9th November 2009, 14:44
The imagick module that you have installed now is not the correct one for the php version that you use. This is a general installation problem and not related to ispconfig or the cron feature.
You should try to remove the imagick module and then install it again.
vaio1
9th November 2009, 14:46
So, if the imagick problem will be solved the email message is not sent anymore?
till
9th November 2009, 14:52
Your linux distribution (and not ispconfig) is sending you this message as the cronjob could not be executed caused by the imagick problem. So if you solve the problem, there is no error and then there is no reason for your system to send you a email.
vaio1
9th November 2009, 17:26
Solved reinstalling the imagick packets by hand!
Thanks
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.