Cron job doesn't work
« on: October 29, 2011, 11:51:25 AM »
Hi,
I set a cronjob and I got this message from the server:
Quote
xen:~# ls -lart /var/www/vhosts/casacochecurro.com/httpdocs/generator/pages/class.utils.inc.php
-rwxrwxr-x 1 casacochecurro psacln 5617 Oct  1 19:02 /var/www/vhosts/casacochecurro.com/httpdocs/generator/pages/class.utils.inc.php
xen:~# /usr/bin/php /var/www/vhosts/casacochecurro.com/httpdocs/generator/runcrawl.php

Warning: fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10001 is not allowed to access /var/www/vhosts/casacochecurro.com/httpdocs/generator/data/generator.conf owned by uid 33 in /var/www/vhosts/casacochecurro.com/httpdocs/generator/pages/class.utils.inc.php on line 102

Warning: fopen(/var/www/vhosts/casacochecurro.com/httpdocs/generator/data/generator.conf): failed to open stream: Inappropriate ioctl for device in /var/www/vhosts/casacochecurro.com/httpdocs/generator/pages/class.utils.inc.php on line 102
13:07
 

This is what I set in the crontab
Code: [Select]
15      1       *       *       *       /usr/bin/php /var/www/vhosts/casacochecurro.com/httpdocs/generator/runcrawl.php >/dev/null 2>&1

What is it wrong?
Thanks in advance for any reply, J
Re: Cron job doesn't work
« Reply #1 on: October 30, 2011, 05:03:31 PM »
Hello,

please try to remove generator/data/generator.conf file and run generator again.