• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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