F
freedominternet
Guest
We have recently moved server havng previously been on Plesk 9.5.4 on Debian. We are now running Plesk 10.1.1 on Centos5.
We have a number of Cron commands setup under various user accounts all of which are critical and must run as scheduled. The cron command is set to:
/usr/bin/php -q /var/www/vhosts/your_domain_name/httpdocs/cron.php
Normally this should run a sequence in php at the end of which an email is produced.
At present, the command works perfectly fine if it is run in SSH but when left to run through the Plesk Cron Tab, we get the following error sent via email instead:
execv("/bin/bash") failed
system error: No such file or directory
Using the following:
/usr/bin/curl http://www.your_domain_name/cron.php
also works in SSH but when left to run automatically as per above, nothing happens.
In both instances, the commands are logged in /var/logs/cron as expected so I know they are at least being executed on time but the expected results never appear.
If anyone can help with this please, it would be most appreciated.
We have a number of Cron commands setup under various user accounts all of which are critical and must run as scheduled. The cron command is set to:
/usr/bin/php -q /var/www/vhosts/your_domain_name/httpdocs/cron.php
Normally this should run a sequence in php at the end of which an email is produced.
At present, the command works perfectly fine if it is run in SSH but when left to run through the Plesk Cron Tab, we get the following error sent via email instead:
execv("/bin/bash") failed
system error: No such file or directory
Using the following:
/usr/bin/curl http://www.your_domain_name/cron.php
also works in SSH but when left to run automatically as per above, nothing happens.
In both instances, the commands are logged in /var/logs/cron as expected so I know they are at least being executed on time but the expected results never appear.
If anyone can help with this please, it would be most appreciated.