In this article you will learn:
- What is and how does CRON work on web hosting
- How to create a script to run CRON
- How to manage CRON tasks
- Common problems
- Frequently Asked Questions
CRON on Webhosting
CRON, which you can find in the Webhosting administration, is a tool for re-running tasks set by a PHP script stored on the Webhosting.
CRON on Webhosting is a greatly simplified and limited version of the Linux tool of the same name. It is designed to run PHP scripts, not Bash commands.
The main limitation of CRON web hosting is the number of tasks you can set for the service and the minimum time interval for running these tasks.
- In the basic setup, you can set up to 3 different CRON tasks running at a minimum interval of 1 hour.
- Use the CRON+ add-on service to increase the maximum number of jobs to 10 and the minimum startup interval to 5 minutes.
- In case of WMS web hosting ⧉ we do not limit the number of CRONs, the minimum time interval is 5 minutes. You do not need to activate any additional service.
Other important information:
- Through CRON you can only call scripts on a specific Webhost, you cannot call other URLs, scripts from another Webhost or run command line.
- The system does not send notifications or further process the output.
- We cannot 100% guarantee that a script will run at the exact minute specified; by the nature of the service, the server runs many scripts at once at given times and execution may be delayed.
Scripts for running CRON
It is recommended that all the actions to be performed by the CRON script be entered into a single PHP file that you set up for CRON. This script is subject to all the normal rules and restrictions of PHP on web hosting - it works exactly the same as if you were running it in a browser.
CRON-executed PHP scripts cannot interfere with PHP settings or the web host's operating system.
CRON allows you to specify script parameters in the URL address, e.g. cron.php?key=123456¶m=test
. We recommend that you use these parameters, among other things, to protect against accidental execution of the script from the outside, for example by a robot indexing the site files.
Other important information:
- Include a locking system in the script to prevent damage in case of delayed or repeated execution.
- The system doesn't allow HTTP authentication, we recommend to insert a secret string into the URL, which the script will authenticate and then start to perform its main activity.
- Do not limit the script execution to a specific IP, we cannot guarantee that it will not change.
Managing CRON tasks
To access the CRON task management interface, follow these steps:
- Log in to the customer administration ⧉.
- In the top menu, select Hosting Services Webhosting or WMS.
- Select the service for which you want to set up CRON.
- Click on CRON in the left menu.

In this interface you can CRONs:
Creating a CRON task
You can find the form for creating a new CRON job in the CRON management interface under the overview table. Enter:
- Title. You can set any name.
- Frequency and start dates. The available frequencies (from 5 minutes or 1 hour to 12 hours) depend on the CRON service variant. You can also set the days and times when CRON will run and, if necessary, limit the dates during which the run will occur.
- PHP script URLto trigger CRON. Add parameters directly to the URL, e.g.
cron.php?parametr=hodnota
. Separate multiple parameters by a character&
.

Editing and deleting CRON jobs
To access the CRON job editing interface, click the pencil icon on the left side of the CRON overview.
To delete a CRON job, click the red cross on the left side of the CRON overview.

If you just want to pause the job without deleting it, edit the job so that the To date contains the current date. Deleting this setting resumes the job.
Common problems
Common problems with CRON include:
CRON is not triggering
Problem: CRON does not run the set script.
Cause: the CRON is suspended or calling a non-existent script. The error may also be in the script itself.
Solution: Perform the following checks:
- In the CRON task management interface, check that the next run is scheduled.
- In the browser, verify that the script starts correctly when the full address including the protocol and parameters is entered.

If the script is correctly scheduled and works in the browser, but CRON still does not run it, set up temporary FTP access for support according to these instructions and send a detailed description of the problem via the ⧉ form.
Unable to enter the desired settings
Problem: The manual for my application asks me to set up CRON, but the scripts as instructed cannot be entered in your administration.
Cause: Applications often use the term CRON to mean a Linux tool that calls terminal commands. However, the CRON web host only supports the execution of PHP files.
Solution: Try to achieve the desired results with a PHP script that can call CRON.
Frequently Asked Questions
What if I need more than 3 CRONs on my web hosting?
The CRON+ add-on service increases the maximum number of jobs to 10 and the minimum startup interval to 5 minutes.
How do I get into more detailed CRON settings?
We do not provide detailed settings in the Webhosting interface. However, you can enter the conditions in the PHP script that runs CRON.
What are the parameters?
The parameters in the URL are common PHP parameters of the GET type.
If I have CRON+, do my scripts have priority over the scripts of regular users?
No, when calling scripts at a given time, CRON+ users' scripts are not favored.