PHP Cron job error: "Could not open input file"
Posted: Mon Jun 08, 2009 3:54 am
I'm a newbie when it comes to Cron but I need to set up a script which will run every night at midnight and do various tasks.
The problem is that whenever I run the script using Cron, I get the following e-mailed back to me:
Could not open input file: /var/www/vhosts/SITENAME/httpdocs/_auto/cleanup.php
where SITENAME is the name of my site's directory on the server. The cron line I use to execute this script is:
/usr/bin/php /var/www/vhosts/SITENAME/httpdocs/_auto/cleanup.php
I've checked the location of PHP, and of the script I'm trying to run, and they're fine. I've also checked the permissions, and they're set to 0777 so it should work.
Can anyone shed any light as to why it's not working?
Thanks,
Willo
girl devs have more fun
The problem is that whenever I run the script using Cron, I get the following e-mailed back to me:
Could not open input file: /var/www/vhosts/SITENAME/httpdocs/_auto/cleanup.php
where SITENAME is the name of my site's directory on the server. The cron line I use to execute this script is:
/usr/bin/php /var/www/vhosts/SITENAME/httpdocs/_auto/cleanup.php
I've checked the location of PHP, and of the script I'm trying to run, and they're fine. I've also checked the permissions, and they're set to 0777 so it should work.
Can anyone shed any light as to why it's not working?
Thanks,
Willo
girl devs have more fun