I installed MainWP on my server, and I want to set up a cron job to trigger MainWP's cron job script. What should I do to set up the cron job?


As recommended by MainWP officially at here, you may use EasyCron to trigger cron job script in MainWP.

Our webcron service is best for triggering MainWP's cron job script. Just follow below simple steps to configure cron job for your MainWP:

  1. Open your cron job dashboard, add 13 cron jobs one by one. Firstly, click on " Cron Job" button.
  2. Configure your MainWP like below:

    MainWP Settings
  3. In field "URL to call", enter following URLs respectively for each cron job:
    MainWP Dashboard Cron Jobs
    Check for available updates:
    Continue backing up sites:
    Start backups of site/DB:
    Ping each child site to make sure it is still active and connected to your dashboard:

    MainWP Extensions Cron Jobs
    Client Reports Extension:
    Maintenance Extension:
    Page Speed Extension:
    Post Dripper Extension:
    Remote Backup Extension:
    Sucuri Extension:
    (replace with your install location). Choose an appropriate cron job execution frequency. Checkout below screenshot:

    Set up cron job for MainWP
  4. If necessary, finish the other optional settings.
  5. Click "Create Cron Job" button. You're done! EasyCron will trigger your MainWP's cron job script dutifully according to your time setting.
  6. If you haven't registered your EasyCron account yet, click on the "add a password" link on the top to add an email and password to your account.