How to Set Up and Run a Cron in cPanel

Estimated reading: 2 minutes 108 views

Cron jobs are functions in cPanel that allow users to run commands and programs automatically. Users can schedule cron jobs for various intervals from the cPanel interface.

This tutorial will walk you through the process of setting up a cron job in cPanel.

Requirements

  • A server with cPanel.
  • The cPanel login credentials have permissions for running cron jobs.

How to Set Up a Cron Job in cPanel

  1. Log in to cPanel.
  2. Scroll down to the Advanced section and click Cron Jobs.

.deb open with archive manager

3. Enter the email address you want the cron job results sent to after it runs, and click Update Email.

.deb open with archive manager

4. Specify the time interval you want the cron job to run by selecting from the Common Settings dropdown menu or entering custom settings in the fields.

.deb open with archive manager

Choosing a common setting automatically completes all fields but the Command field. This also provides an understanding of what each field means.

.deb open with archive manager

5. In the Command field, enter the command of the script you want to run, including the path from the root. Click Add New Cron job.

.deb open with archive manager

The cron job is set and displayed at the bottom of the screen in the Current Cron Jobs section.

.deb open with archive manager

Wrapping Up

Setting up cron jobs in cPanel is a helpful way to run programs and commands automatically without user intervention. Greencloud’s support team assists with these functions on fully managed servers with cPanel.

Share this Doc

How to Set Up and Run a Cron in cPanel

Or copy link

CONTENTS