• 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

How do I create a cronjob?

JoseSPAIN

Basic Pleskian
How do I create a cronjob?

If I do it from: Tools and Settings -> Scheduled Tasks -> user: root, it works perfectly this:

*/2 * * * * curl http://www.domain.es/index.php

If I do it from the scheduled tasks of a subscription does not work, I get an email with an error What should I do?
 
I shows: /usr/bin/curl

and if indicated, shows me: hello, what I wrote in the index.php correctly

So I did not know what to do
 
First of all make sure you have enabled schedule tasks permissions to that subscription. Also check to ensure that you have a cron job already set in

/var/spool/cron/
 
Back
Top