• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Creating a Cron Job

A

AvidCat

Guest
I need to setup a cron job for a script I am running. I understand the basics to setup hour minute etc. But for the command line the script said I should type :/usr/local/bin/php -q /var/www/vhosts/mysite.com/httpdocs/Affiliate-Program/scripts/jobs.php

But when I do that I get the following emailed error report:

/bin/sh: /usr/local/bin/php: No such file or directory

For the command line in plesk what can I put?

Thanks for any help.
 
Run 'which php' to find the location of your php binary. It's probably /usr/bin/php, not /usr/local/bin/php.
 
Thanks, actually I was searching around online last night and saw that someone posted what you just said. I logged into my ssh and ran that and found that I needed to use /usr/bin/php.
 
Back
Top