• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.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