Cron Jobs
Become more familiar with Cron Jobs - what exactly are they, what function do they serve and the way to create them.
A cron job is an automated task, which executes a specific action - usually executing a script inside a hosting account. The task is scheduled, so it will run regularly - hourly, daily, weekly and so on. There are lots of reasons to employ a cron job for your websites. For instance, you may get day-to-day reports how many website visitors have registered on your website, some temporary folder may be emptied automatically weekly or a backup of your content may be generated in a standalone folder inside your web hosting account. Employing cron jobs can help you with the management of your sites because you can have lots of things completed automatically and get reports about them, as an alternative to investing valuable time and efforts to do them manually.
-
Cron Jobs in Shared Hosting
The Hepsia Control Panel, which is included with all the
Linux shared hosting, will allow you to set up cron jobs in a couple of simple steps even if you have not used such a function before. Once you log in and go to the Cron Jobs section where you are able to set background tasks, you just have to copy and paste the server access path to Perl, Python or PHP based on the script you will execute, type the path within your account for the actual script file and after that select how often the cron job will be executed. For the latter, you'll be able to use the standard mode and choose the minutes, hours, days, etc. via straightforward drop-down options, or maybe in case you are more experienced, you can take advantage of the advanced mode and set the time period with numbers and asterisks i.e. the usual method that you might have used with different Control Panels.
-
Cron Jobs in Semi-dedicated Servers
If you wish to use cron jobs for any of your websites and you have a
semi-dedicated server account from us, it won't take you more than a couple of clicks inside your Hepsia web hosting Control Panel to do that. Setting up a brand new cron job is really simple and you're able to add one from the Advanced section of Hepsia where you will find a box to enter two different things - the path to the programming language system files which you can find inside the Server Information area (PHP, Python, Perl) along with the path to the script that you'd like the cron job to execute. The last step is to choose how often the cron will be executed and we've got a rather user-friendly interface for that, therefore by using drop-down menus you can easily choose the interval in days, hours or minutes. If you are more tech-savvy or used to the standard, though more sophisticated way to set a cron interval through digits and asterisks, you can use this solution as well.