Plesk 10 Scheduled Task error - No such file or directory
I've spent all morning trying to solve this myself with no luck.
I have a VPS with Centos and Plesk 10 from 1and1. I want to run a PHP script with Scheduled Task (Cron Job) from Plesk. Whenever the Scheduled Task is supposed to run, I get an email saying:
The command I am using is:
-: /usr/bin/php: No such file or directory
If I run the above command from SSH, the script works fine.
/usr/bin/php -q /var/www/vhosts/mydomain/httpdocs/myscript.php
Does anyone know why the above command doesn't work in Plesk with Scheduled Task? Why do I keep getting emails saying "No such file or directory"? :-(