• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

cron job help

D

damianb

Guest
Hi all i am new to setting up cron jobs and am in need of some assistance.

I am trying to run this script in plesk :-

[email protected] * * * * * cd /var/www/vhosts/carp.bz/httpdocs/carpbook/periodic; /usr/bin/php -q cron.php‏

and i get this error in the emails :-

/bin/sh: anon_ftp: command not found
Could not open input file: cron.php

could anyone assist me in what i am doing wrong.

many thanks and kind regards
 
It sounds like the user permissions are set incorrectly on the cron file.
 
[email protected] * * * * * cd /var/www/vhosts/carp.bz/httpdocs/carpbook/periodic; /usr/bin/php -q cron.php‏

actually on second look you telling cron.php that the file is in the top directory.

* * * * * /usr/bin/php -q /var/www/vhosts/carp.bz/httpdocs/carpbook/periodic/cron.php;

this is how the cron should look and there is a setting in the control panel that allows you to decide where you want the cron sending emailed to. I believe my above example is correct, I'm not sure if the semi colon belongs though
 
Back
Top