In this article, you will learn:
- What CRON is and how it works on Webhosting
- How to create CRON scripts
- How to manage CRON tasks
- Common issues
- Frequently asked questions
Webhosting CRON
CRON, which you can find in the Webhosting administration, is a tool for repeatedly running PHP scripts stored on the Webhosting.
The Webhosting CRON is a simplified and limited version of the Linux tool of the same name. It is intended to only run PHP scripts, not Bash commands.
The main limitation of Webhosting CRON is the number of tasks you can set and the minimum time interval for these tasks to run.
- By default, you can set up to 3 different CRON tasks on the Webhosting, with a minimum interval of 1 hour.
- With the CRON+ add-on service, you increase the maximum number of tasks to 10 and the minimum interval to 5 minutes.
- In the case of WMS webhosting, we do not limit the number of CRONs, and the minimum time interval is 5 minutes. You do not need to activate any add-on services.
Other important information:
- You can only call scripts on the same Webhosting via CRON, you cannot call other URLs, scripts from another web hosting service, or Bash commands.
- The system does not send notifications and doesn’t process any output.
- We cannot guarantee that the script will run exactly at the specified time; due to the nature of the service, there may be many scripts scheduled at once and execution may be delayed.
CRON Scripts
We recommend listing all tasks the CRON should execute in one PHP file. This script is subject to all the normalWebhosting PHP rules and restrictions – it works exactly as if you were running it in a browser.
CRONem spouštěné PHP skripty nemohou zasahovat do nastavení PHP ani fungování operačního systému webhostingu.
You can specify special parameters in the URL, e.g. cron.php?key=123456¶m=test
. We recommend using these parameters, among other things, to protect against accidental script execution from the outside, for example by a robot indexing the site’s files.
Other important information:
- Include a lock system in the script to prevent damage in case of delayed or repeated execution.
- The system does not allow the use of HTTP authentication, so we recommend inserting a secret string into the URL, which the script will verify and only then start performing its main activity.
- Don’t limit script execution to a specific IP, we can’t guarantee that it won’t change.
CRON Task Management
Follow these steps to enter the CRON management interface:
- Log into the customer administration panel.
- Int he navigation bar, select Web & Email Hosting Webhosting or WMS.
- Choose the service to set the CRON on.
- In the left menu, click CRON.

In this interface, you can manage CRON tasks:
New CRON Task
You can find the form for creating a new CRON job in the CRON management interface under the task list. Enter the following information:
- Name. Set any name to identify the CRON task by.
- Task frequency and data. Available frequencies (from 5 minutes or 1 hour to 12 hours) depend on the CRON service variant. Furthermore, you can set the days and times when CRON should run and even limit the dates during which it will run.
- PHP script URL which CRON should run. Add parameters directly to the URL, e.g.
cron.php?parameter=value
. Separate multiple parameters with the&
character.

Edit or Delete Cron Task
You can access the CRON task editing interface by clicking on the pencil icon in the left part of the CRON overview.
To delete a CRON task, click the red cross icon in the left part of the CRON overview.

If you only want to pause the task without deleting it, edit it so that the To Date contains the current date. Clearing this setting will reset the job.
Common Issues
Common issues with CRON include:
CRON Doesn’t Run
Issue: CRON does not run the set script.
Cause: CRON is suspended or trying to run a script that does not exist. 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, check that the script executes correctly when entering the full address, including the protocol and any parameters.

If the script is scheduled correctly and works in the browser, but CRON still won’t run it, set up temporary support FTP access using this guide and submit a detailed description of the problem via the form.
Cannot Run Required Actions
Issue: My app’s asks me to set up CRON, but I cannot enter the required commands in the administration panel..
Cause: Applications often refer to CRON as the Linux utility that calls terminal commands. However, Webhosting CRON only supports the execution of PHP files.
Solution: Try to achieve the required results using only Webhosting-compatible PHP code, which can be run by CRON.
FAQ
Question: What if I need more than 3 CRONs on my Webhosting?
Answer: The CRON+ add-on service increases the maximum number of tasks to 10 and the minimum execution time interval to 5 minutes.
Question: How do I get into more detailed CRON settings?
Answer: We do not provide more detailed settings in the Webhosting administration panel. You can enter more detailed conditions in the PHP script which the CRON runs.
Question: What are parameters?
Answer: The parameters in the URL address are common PHP GET parameters.
Question: If I have CRON+, do my scripts have priority over regular user scripts?
Answer: No, the scripts of users with CRON+ have no priority over those of regular users.