Forums / General / problems running runcronjobs.php
Kaustav Bhattacharya
Thursday 04 December 2008 7:26:04 am
All,
I'm getting an error when I run runcronjobs.php. I am running eZ 4.0.1 on a cloud computing platform at mosso.com (a Rackspace company). I don't get command line access on their platform (coming in '09) and the only way I can set up a cronjob is via their web control panel where I can set up a scheduled task.
I have set up a scheduled task (probably just a cron job under the surface) to execute every 5 minutes and run runcronjobs.php from the root of the Exponential install directory which in my case is:
/mnt/stor1-wc1-dfw1/369314/xxx.xxx.com/web/content/runcronjobs.php
I get a log file written everytime the schedule task runs and the error it shows is:
Command to be executed is: /usr/bin/php /mnt/stor1-wc1-dfw1/369314/xxx.xxx.com/web/content/runcronjobs.php Task ID of this command is: 4234 Where should log be written: /mnt/stor1-wc1-dfw1/369314/xxx.xxx.com/logs PHP Warning: require_once(lib/ezutils/classes/ezdebug.php): failed to open stream: No such file or directory in /mnt/stor1-wc1-dfw1/369314/xxx.xxx.com/web/content/kernel/classes/ezpersistentobject.php on line 57PHP Fatal error: require_once(): Failed opening required 'lib/ezutils/classes/ezdebug.php' (include_path='.:/usr/share/pear:/usr/share/php') in /mnt/stor1-wc1-dfw1/369314/xxx.xxx.com/web/content/kernel/classes/ezpersistentobject.php on line 57
I'm running PHP 5.2.6 with Zend 2.2.0 and apache 2.2.3.
I have made sure the file perms are set to 755 for the relevant files.
Any idea why the error is occuring?
Kaustav
Arnaud Lafon
Friday 05 December 2008 1:29:53 am
You shouldn't use absolute path to call the runcronjobs script.
Give it a try with :
cd /mnt/stor1-wc1-dfw1/369314/xxx.xxx.com/web/content/; /usr/bin/php runcronjobs.php
Looking for information about SQLI ? Looking for a new job in Paris ? Please contact me at alafon [at] sqli [dot] com