• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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