Cron is a program which is a task scheduler in UNIX-like operating systems (including Apache server). And, at a certain time, it automatically performs tasks. For example: it backs up the database to a certain location on the site

To get started, select "Advanced → Scheduled Tasks " on the main page of cPanel.

file

In the window that opens, you will see several sections. The first one is email, or rather, if you want the system to notify you when the script runs, add your e-mail

When you run the script, you will get a message with the result.

file

The next section is "Add a new scheduled task " where you can configure the script you want to run

For example, you want to set the script to run once a day

We recommend to run Cron tasks at night, because the total load on the server will be lower.

For example: You need to run the script at 2 am.

You choose:

minute - 00  
hour - 02  
The rest - *  

file

You can also run the script either by querying the Url (in the browser) or by querying the php script, via the php command.

First way: you can run the script by querying the Url through the browser.

wget -O -q -t 1 http://имя_домена/скрипт.php  

file

Second way: running the script is via a request to a php-script, a command with php.

php /home/your login from sipanel/public_html/the script path/script.php  

file

Updated April 23, 2019