Docly Child

Configuration WP Cron from server side

Configure Wp Cron to create trackers in the TrackShip and Send TrackShip Shipment status Emails and SMS notifications to your customer.

Disabling the virtual WordPress cron job

  1. Log in to your account using cPanel or SSH.
  2. Using the cPanel File Manager or the command line, open the wp-config.php file in a text editor.
    • The wp-config.php file is located in the directory where you installed WordPress. Usually, this is the public_html directory.
  3. Add the following line to the wp-config.php file:
    • define('DISABLE_WP_CRON', true);
  4. Save the changes to the wp-config.php file and then exit the text editor. The virtual WordPress cron job is now disabled.

Configuring a real cron job for WordPress

To set up a WordPress cron job using cPanel, follow these steps:

  1. Log in to cPanel.
  2. In the Advanced section of the cPanel home screen, click Cron jobs.
  3. Under Cron Email, type the e-mail address that you want to receive notifications, and then click Update Email. Every time the cron job runs, the e-mail account will receive a message.
    • If you do not want to receive e-mail notifications for the cron job, you can append >/dev/null 2>&1 to the command, which redirects all output to /dev/null.
  4. Under Add New Cron Job, in the Common Settings list box, select Twice an Hour.
  5. In the Command text box, type the following line:
    • cd ${HOME}/public_html; /usr/local/bin/php -q wp-cron.php
    • This line assumes that you installed WordPress in the document root (public_html) directory. If you installed WordPress in another directory, modify the cd command to change to that directory instead.

Download Now

CONTENTS