• 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.

Issue Scheduled tasks option absent in Plesk

Lyman Zerga

New Pleskian
Hi,

For my website I need to set a Cron command in Plesk. On the Plesk website and numerous others the advice is to click the 'Scheduled Tasks' option in 'Websites & Domains'. However, this option is not present in the 'Websites & Domains' tab. This is what I see as options:
Untitled.png
Another suggested option was to create a shell script with crontab commands to run the desired file. I created a cron.sh file with the following code:

Code:
#!/bin/sh

crontab -e
* * * * * httpdocs/MySQL/FTPConnection.php
ls -l httpdocs/cron.sh
chmod +x httpdocs/cron.sh
ls -l httpdocs/cron.sh

This does not work, nor do other (absolute) file paths. I do not know whether this is because I made an error with the shell script or because shell scripting is not enabled for my user account (I am not the website admin but am allowed to change the website content). There is no 'bin' directory visible in the 'Files' tab for my domain.

Can anybody help me how to implement a scheduled task to run my PHP file in Plesk?

Regards,
Lyman Zerga
 
Make sure that "Scheduler management" permission is enabled for this subscription. You can set this permission in corresponding Service Plan and then sync it with subscriptions. After that you will see:

Screenshot at Mar 15 11-10-51.png
 
Back
Top