• 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

Question Install the Cron Job :))

thaodep1001

New Pleskian
use Jomsocial and someone can tell me. Which one is support to install at my server plesk, i use ubuntu

lynx -source "Domain.com" > /dev/null
Lynx is a text-based browser that is installed in most hosting environments. If you do not have Lynx installed, you can use other alternatives such as wget, shown below:

wget -O /dev/null "Domain.com" > /dev/null
Don't worry, this operation actually runs very fast and has very little impact on the server, equivalent to a normal single page load.
 
Here are two types of cron tasks in Plesk:

  • Customer cron tasks. This type of tasks can be created by both Customers and Administrators. They are executed on behalf of a system user. Such tasks do not provide access the filesystem outside of the document root of the web site.
  • Administrator cron tasks. This type of tasks can be created by Administrators only. They are executed on behalf of the root user. Such tasks provide write access to the whole filesystem.
To schedule a Customer cron task:

  1. Go to Websites & Domains > example.com > Scheduled Tasks > Add Task.
  2. In the Command field put the full path to the script to be executed.
  3. In the Run field set the the task execution time (an example is available here).
  4. Click OK to save changes.
To schedule an Administrator cron task:

  1. Go to Tools & Settings > Scheduled Tasks > Add Task.
  2. In the Command field, put the full path to the script to be executed.
  3. In the Run field, set the the task execution time.
  4. In the System user field, leave user as root or choose another system user to run the task.
  5. Click OK to save changes.
Another option is editing cron task in shell:

  1. Allow the customer to login to server via SSH in Plesk > Subscription > Web Hosting Access > Access to the server over SSH
  2. Login to the server over SSH
  3. Run crontab -e in order to edit cron tasks.
 
Back
Top