I'm using UnlimtedWebHosting for a site and trying to set up a scheduled task to run a PHP script.
After a few weeks of messing around with their support team, we've finally managed to get the command right to run a PHP script, which is as follows:
/usr/bin/php -q /var/www/vhosts/(sitename)/httpdocs/Code/testmail.php
Now, this works correctly if it's set by someone at their end, but if I try to make a change (or even open and close the job through Plesk), it breaks and the php page isn't called. Instead I get the following error:
-: /usr/bin/php: No such file or directory
If someone from the hosts support team go it and set it again, it starts working with the same command.
I've logged onto the Plesk Control Desk with an account that has all of the permissions set that I can give it, but still no luck. Whenever I set the job myself, it fails. Whenever they set it, it works.
UnlimitedWebHosting's support team don't seem to know what the issue is, and I don't have access to SSH.