Understand what cron jobs are, what they do and ways to use them to enhance your digital life.
A cron job is a command, that works conveniently in the background on a predefined time period and it also executes a script inside a web hosting account. There aren't any restrictions in regard to what the script can be - PHP, Bash, Perl, etc., what it can do, or what exactly your file extension will be. Examples are mailing a daily report which contains all the end user activity within a specific site, creating a regular backup or erasing the content within a certain folder. These tasks or any other script can be run on time intervals chosen by the user - every few minutes, hours or days, and even monthly or maybe annually according to the specific objective. Working with cron jobs to improve different elements of managing a site saves considerable time and efforts.
Cron Jobs in Cloud Hosting
Setting up a cron job requires precisely 3 very simple steps if you get a cloud hosting
package from us. The Hepsia Control Panel, that is featured with all of the website hosting accounts, has an area centered on the crons and once you go there, you should enter the folder path to the script which you want to be run, the command path to the system files for the selected programming language (Perl, Python, PHP), that you can copy and paste from the Server Information section, and after that specify how frequently the cron job needs to run. For that time interval, we offer two options - a user-friendly one with drop-down navigation where one can select the minutes, hours, days and/or months, and a more complex one that's used with various other website hosting Control Panels in which you have to type numbers and asterisks on particular positions that outline different periods of time.
Cron Jobs in Semi-dedicated Hosting
If you wish to use cron jobs for some of your websites and you have a semi-dedicated server
account from us, it will not take you more than a few clicks in your Hepsia hosting Control Panel to do this. Installing a new cron job is easy and you'll be able to add one from the Advanced section of Hepsia where you'll find a box to enter two things - the path to the programming language system files that you can find inside the Server Information area (PHP, Perl, Python) along with the path to the particular script that you would like the cron job to run. The last step is to select how often the cron will be executed and we've got a rather user-friendly interface for that, which means that by using drop-down menus you can easily select the interval in days, hours or minutes. In case you are more tech-savvy or used to this standard, though more complex way to set a cron interval using digits and asterisks, you can use this method as well.