HostKarle Support

How to Enable or Setup Cron Jobs in cPanel Step By Step

In this tutorial, you will learn how to set up or enable Cron jobs in cPanel step by step.

When you try to run any script or anything which you dont want to run manually then you can set up cron jobs. But if you dont know how to enable or set up cron jobs then you should learn it first, Cron jobs allow you to automate certain commands or scripts on your site. You can set a command or script to run at a specific time every day, week, etc. For example, you could set a cron job to delete temporary files every week to free up disk space.

How to Setup and Manage Cron Jobs in cPanel

1) Log into cPanel then click the Cron Jobs icon

2) Cron Email – You can have cron(s) send an email every time it runs a command which produces output.

Send an email with the output every time the cron job runs. less »

You can have cron send an email every time it runs a command which produces output. If you do not want an email to be sent for an individual cron job, you can redirect the command’s output to /dev/null. For example: mycommand >/dev/null 2>&1

Note: If you do not wish to receive an email notification of a specific cron job, add the following
line to the command: >/dev/null 2>&1

3) Add New Cron Job – Now you have to define exactly when and how often you want the cron job to run.

4) Next, enter the command of the script you want to run, including the path.

Command Examples:

/usr/bin/php /home/username/public_html/cron.php

mysqldump -u root -pPASSWORD database > /root/db.sql

/usr/bin/wget --spider "http://www.domain.com/cron.php"

5) When you’re done, click Add New Cron Job button.

admin

Recent Posts

Top 5 Windows RDP Providers 2026

Remote Desktop Protocol (RDP) continues to be one of the most powerful solutions for remote…

2 months ago

How to Create Your Own Cryptocurrency | Step-by-Step Guide

How to Create Your Own Cryptocurrency Step By Step  What is Cryptocurrency? Cryptocurrency is basically…

5 years ago

Diwali Web Hosting Offer Up to 80% Discount 2021

Web Hosting Diwali Offer HostKarle Coupon Code 2021   Hostkarle provides cheap web hosting services…

6 years ago

How to fix file type is not permitted Unexpected response from the server WordPress Error

Some files not permitted by wordpress to upload When we upload that files wordpress showing…

6 years ago

Hostkarle Promo Code, Hostkarle Coupon Code May 2020

  Hostkarle provides cheap web hosting service in India also have rated no.1 web hosting…

6 years ago

How To Secure WordPress site Without Using Plugin [ WordPress Security Tips 2020 ]

Best Trick To Secure Wordpress Site From Hackers   You can try our trick to…

6 years ago

This website uses cookies.