Frequently asked questions
Yes, if you know what you are doing, you may run cron jobs to maintain services for your webhotel. This FAQ entry therefore applies to advanced users with basic Unix shell competence.
We will not help you with cron jobs. If you do not know how to create and maintain cron jobs, please do not run such jobs on our servers.
You must have a webhotel with Unix shell access.
The person who is going to configure cron jobs, must have basic Unix shell competence, including but not limited to:
- the redirect of
- general error handling
If any of these terms and concepts are unknown to whoever wants to configure cron jobs, then he or she is regrettably missing the necessary basic competence.
All cron jobs must be setup on one of the login servers:
- Webhotel with PHP 5.6:
- Testing of PHP 7.0 (CLI):
- Resource usage of CPU, memory (RAM), disk access (IO), bandwidth, database etc. must be conservative
- Jobs should not run more frequently than each 10 minutes, and only under exceptional circumstances as frequently as each 5 minutes, but never more frequently
- Resource demanding jobs, especially regarding disk and database, must run even less frequently, e.g. hourly
We reserve the right to remove, terminate or change the frequency of cron jobs that we consider a risk to performance or stability for our services.
Common traps, mistakes and errors
Mixed-up minute and hour spec in crontab
crontab file format, MINUTE precedes HOUR, not vice versa. The following job runs four minutes past each hour:
4 * * * * /usr/bin/php /home/1/m/myname/bin/phpjob.php > /dev/null 2>&1
While the following job runs each minute between 04:00 og 05:00:
* 4 * * * /usr/bin/php /home/1/m/myname/bin/phpjob.php > /dev/null 2>&1
cron errors generate e-mail
If a cron job creates output or fails in any way, it will generate email to you on our login-server. If your cron job runs frequently, there may be many messages. You may read this email via SSH, by using e.g.
If you wish to ignore any and all errors with cron jobs, add the following line (without any leading spaces) at the top of your crontab:
If there are many such error messages that you do not check, we may have to configure forwarding of your errors to your e-mail address, so that you notice the problems.