- cPanel - CloudFlare
- cPanel - FileZilla FTP Client
- cPanel - Installing WordPress
- cPanel - Softaculous Apps Installer
- cPanel - Virus Scanner
- cPanel - MIME Types
- cPanel - Error Pages
- cPanel - Indexes
- cPanel - Track DNS
- cPanel - Cron Jobs
- cPanel - Optimize Website
- cPanel - Ruby on Rails
- cPanel - Hotlink Protection
- cPanel - SSH/TLS
- cPanel - IP Blocker
- cPanel - CPU and Connection Usage
- cPanel - Raw Access
- cPanel - Webalizer
- cPanel - Bandwidth
- cPanel - Errors
- cPanel - Visitors
- cPanel - Apache Spamassassin
- cPanel - Encryption
- cPanel - Address Importer
- cPanel - Authentications
- cPanel - Email Filters
- cPanel - Track Delivery
- cPanel - Autoresponders
- cPanel - MX Entry
- cPanel - Webmail
- cPanel - Email Forwarders
- cPanel - Email Accounts
- cPanel - Advance Zone Editor
- cPanel - Simple Zone Editor
- cPanel - Redirect
- cPanel - Addon Domain
- cPanel - Aliases
- cPanel - Subdomains
- cPanel - Remote MySQL
- cPanel - phpMyAdmin
- cPanel - MySQL Database Wizard
- cPanel - MySQL Databases
- cPanel - Backup Wizard
- cPanel - Backup
- cPanel - FTP Sessions
- cPanel - FTP
- cPanel - Disk Usage
- cPanel - Directory Privacy
- cPanel - Image Converter
- cPanel - Image Scaler
- cPanel - Images
- cPanel - File Permissions
- cPanel - File Manager
- cPanel - User Manager
- cPanel - Statistics & Dashboard
- cPanel - Home
- cPanel - Contact Information
- cPanel - Styles
- cPanel - Changing Password
- cPanel - Logging cPanel Dashboard
- cPanel - Setting Up Nameserver
- cPanel - Getting Web Hosting
- cPanel - Registering a Domain Name
- cPanel - Overview
- cPanel - Home
cPanel Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
cPanel - Cron Jobs
If you want to run a command or a php program on a specified time interval pke once a day or once a week, you can setup cron jobs in this interface. Cron jobs allow you to run a specific command or program automatically. This is often required, if you are using a software pke CRM or Bilpng Software. Setting up cron jobs more often may degrade your server’s performance.
Setup Cron Job
To add a new cron job, follow these steps −
Step 1 − Open Cron Jobs by cpcking Cron Jobs found in the Advanced section in cPanel.
Step 2 − Scroll down to see Add New Cron Job interface.
Step 3 − You can choose an existing setting from common settings. If you do that all the fields of cron execution time will automatically get filled. Or you can choose your custom runtime settings by specifying in the next text inputs accordingly.
Step 4 − Enter your command to run in cron job. If you are running a php file, enter full name of php file. For example −
php /home/tutorialspoint/pubpc_html/cron.php
Step 5 − Cpck Add New Cron Job button to add a cron job.
Cron Email
cPanel by default sends an email each time a cron job runs. It also redirects the output of the command or file into the email. Default email for this is your system account, but you can change this email too. To change the email on which you want to receive cron email, firstly find out Cron Email interface in Cron Jobs. Then enter your new email in which you wish to get cron emails. Cpck Update email to update your email.
If your cron runs more frequently, then you may not want to receive emails, you can disable receiving emails by redirecting your output into null by writing >/dev/null 2>&1 at the end of the command. For example −
php /home/tutorialspoint/pubpc_html/cron.php >/dev/null 2>&1
Edit or Delete Existing Cron Jobs
To edit or delete your existing cron jobs, you can scroll below on the Corn Jobs interface to see current cron jobs. Once you select the job, you can cpck either the delete pnk or the edit pnk to edit or delete a particular cron job.
Advertisements