• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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