X
X

Launch Offer! Upto 80% Discount

How to run Cron Jobs in cPanel?

Cron jobs let you automate repetitive processes on your server. Here’s a step-by-step guide on how to set up cron jobs in cPanel:

  1. Log in to cPanel
    If you’re not logged in, enter your cPanel username and password to access the cPanel dashboard.
  2. Find the Cron Jobs Icon
    Click on the "Advanced" option on your dashboard within cPanel. Click on the "Cron Jobs" icon. It might look like a small clock or calendar.
  3.  Add a New Cron Job
    In the Cron Jobs interface, you will see a section called "Add New Cron Job".
  4. Set the Timing for Your Cron Job
    Use the drop-down menus to set when you want the cron job to run.
    1. Common Settings: Select from predefined schedules like "Once per day" or "Once per hour."
    2. Custom Timing: If you need a specific schedule, you can enter the minute, hour, day, month, and weekday.
  5. Enter the Command
    Enter the command you want to be run in the "Command" section. This could be a script or any command you need to automate.
  6.  Add the Cron Job
    To save your cron job, click the "Add New Cron Job" button.
  7. Tips for Setting Up Cron Jobs
    1. Testing Commands: Before setting up a cron job, test your command in the terminal to ensure it works correctly.
    2. Email Notifications: You can set up your cron job to send you an email every time it runs. Simply type your email address into the "Email" section.
    3. Correct Paths: Make sure to use the correct paths to your files and scripts to avoid errors.

You have set up a cron job in cPanel. Now your tasks will run automatically according to the schedule you’ve set.

Top