• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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