...
Info |
---|
The Cron URL with token will be in format: https://<your-domain>/cron.php?token=<your_-defined_-token> |
Copy the URL.
Next step, we need to configure Cron job on the server. There are several ways to configure Cron job, depend on your web server environment.
...
- Step 1: To access the Cron Jobs Menu, click on the corresponding icon located on the main screen of your cPanel interface.
- Step 2 (optionalOptional): Enter the email address where the cron output will be sent to in the corresponding field.
...
- Step 3: Enter the command "curl -s <your_cronjob_url_with_https://<your-domain>/cron.php?token=<your-defined-token>" in the blank field next to the Command field.
(<your_cronjob_url_with_https://<your-domain>/cron.php?token=<your-defined-token> is the PATH URL we received in the first part)
- Step 4: Select how often you wish the command to be run by selecting an option in each of the boxes or by selecting a predefined period from the Common Settings drop-down menu. We suggest running the cron job every 5 minutes.
Step 5: Click on Add New Cron Job to save your changes and set up your cron job.
Note title Note This instruction is just available for cPanel version 56. For other versions please visit the cPanel Cron Job Document to get more information.
...
- Step 2: Configure cron job: execute the command "curl -s http(s)https://www.<your-domain>.com/cron.php?token=<your_-defined_-token>" every 5 minutes
(http(s)https://www.<your-domain>.com/cron.php?token=<your_-defined_-token> is the URL we received in first part). - Step 3: Click on "Add" button to add the phpFox cron job.
- Step 4 (optionalOptional): Set up the email address to receive the cron output.
Set up with
...
Command line (Linux server)
- Step 1: Log in to your web server via SSH access.
- Step 2: Enter the command below to edit the Cron jobs list on your server
...
- Step 3: Add the command below to the list to add the phpFox cron job.
(https://<your-domain>/cron.php?token=<your_-defined_-token> is the URL we received in first part).
With this command, the phpFox Cron job will be executed every 5 minutes.
Code Block | ||
---|---|---|
| ||
*/5 * * * * curl -s https://<your-domain>/cron.php?token=<your_-defined_-token> |
- Step 4: Save the change and the phpFox cron job have been set up successfully.
Set up on Window Server
Create a schedule task to execute the command "wget https://<your-domain>/cron.php?token=<your
...
-defined
...
-token>"
(https://<your-domain>/cron.php?token=<your
...