Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The first step to set up new cron jobs system is getting the URL for cronjob of your phpFox site

 1. Log into AdminCP, and select Cronjob Token from Cronjob under Settings menu.
Token is like the password for your cronjob, you have to have the correct token on cronjob URL so you can execute the cronjob. Here you can set up the token for yourself, enter any phrase you want to set as token and git hit Save Changes

Image Removed

2.  Select Cronjob URL from Settings menu, you You now will obtain your site's cronjob URL with a pre-defined token from the first step.

Image RemovedImage Added

 


Info

The Cron URL with token will be in format: https://<your-domain>/cron.php?token=<your-defined-token>

...

  • 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 10 minutes.


  • Step 5: Click on Add New Cron Job to save your changes and set up your cron job.

    Note
    titleNote

    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 https://<your-domain>/cron.php?token=<your-defined-token>" every 5 10 minutes
    (https://<your-domain>/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 (Optional): Set up the email address to receive the cron output.

...

  • 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 10 minutes.
Code Block
languageapplescript
*/510 * * * * curl -s https://<your-domain>/cron.php?token=<your-defined-token>

...