How Do I Add/Setup a Cron Job?

Cron jobs are command-line scheduled tasks, which can run an operating system command directly.

To add/setup a cron job:

  • Login to cPanel
    • Open your Web browser (Chrome, Firefox, Edge, Safari, etc.) and visit:
      • https://yourdomain.com/cpanel/
        • Note: replace yourdomain.com with your actual domain name
    • Not sure how to login to cPanel? See help article, "How Do I Login to cPanel?"
  • Click the "Cron Jobs" icon in the "Advanced" section (see screenshot below)
    how do i add setup a cron job cpanel advanced section
  • Note: We recommend entering your email address in the "Email" field and then clicking the "Update Email" button to save
    • This only needs to be completed one time and will cause the cron notifications to be sent to your email address
  • Select the interval you want to run the cron job under "Add New Cron Job" heading
  • Enter the command in the "Command" field you want to execute each time the cron job is run at the specified interval (see below for an example)
  • Click the "Add New Cron Job" button

Here is an example cron job command:

php -q /home/yourusername/public_html/cron.php >/dev/null 2>&1

Note: This will execute PHP to run the cron.php script in the public_html folder and supress the output.

Please let us know if you have any questions or need further help.

  • 0 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Relaterede artikler

How Do I Access LinkSky Visual Site Builder?

LinkSky Visual site builder is a great way to build and update a website! You'll love the...

How Do I Add a Domain Alias (Parked Domain)?

Domain aliases, also called parked domains, are used to point another domain to your existing...

How Do I Add a New LinkSky.com User?

There are many reasons a LinkSky member may want or need to add additional LinkSky.com users to...

My Website is Down

For security, your IP address (see https://www.linksky.com/ip/) may have been automatically and...

SSL Certificate for My Website

Great news, we recently rolled out Let’s Encrypt certificates to members! The goal is to provide...