Open the cpanel management backend, under the "Advanced" option there is a "Clock Guardian Job", as shown below, click to enter. The settings page has three options: Cron Email (notification email address, this email address will be notified every time the scheduled execution succeeds or fails), Add New Cron Job (add a new scheduled task), and Current Cron Jobs (currently existing scheduled tasks). The main thing is to set the Add New Cron Job option, as shown below: The command shown in the figure is executed every 5 minutes: command: "php /home/piaoyi.org/public_html/cron.php" means: Executing the command in the form of a PHP script is equivalent to accessing it through a browser. cron.php is a file that is executed at a scheduled time. Note: If your command is not written correctly, you will receive an error message like "/bin/sh: /home/www.piaoyi.org/public_html/cron.php: Permission denied" or "No such file or directory" in your mailbox; if it is successfully executed, you will receive a code like "X-Powered-By: PHP/5.2.13 Content-type: text/html" in your mailbox. Regarding the time setting of crontab, the following are explained: The basic format of crontab is: This is the end of this article about how to use Cron Jobs to execute PHP on a scheduled basis under Cpanel. For more information about how to use Cron Jobs to execute PHP on a scheduled basis, please search previous articles on 123WORDPRESS.COM or continue browsing the following related articles. I hope you will continue to support 123WORDPRESS.COM in the future! |
<<: DIV common attributes collection
>>: Analysis of the situation where js determines and informs the support of CSS attributes (values)
Question: After the computer restarts, the mysql ...
The downloaded version is the Zip decompression v...
Give time time and let the past go. In the previo...
Foreign Keys Query which tables the primary key o...
border-radius: CSS3 rounded corners Syntax: borde...
Table of contents 1. Project Construction 2. Vue3...
Here are the detailed steps: 1. Check the disk sp...
Since Zabbix version 3.0, it has supported encryp...
Recently, I happened to be in touch with the vue+...
1. Check the kali linux system version Command: c...
With the popularization of 3G, more and more peop...
First: Copy code The code is as follows: <input...
Based on SEO and security considerations, a 301 r...
Website compatibility debugging is really annoyin...
Original derivative command: bin/sqoop import -co...