Cronjob Manager
If you are using our new Control Panel, refer to this article.
Make the switch and discover a simpler, more secure way to manage your hosting.
The konsoleH Cronjob Manager makes it possible for customers to execute commands or scripts automatically at set intervals. These scheduled scripts or commands are known as cronjobs. The Cronjob Manager allows you to create, edit and delete cronjobs for your xneelo hosted domain.
Create a Cronjob
- Browse to konsoleH and log in at Admin or Domain level
- If Admin level: Select or search for a domain name in the Hosting Services tab
- Select Manage Services from the left-hand menu
- Select Cronjob Manager
- Select Add
- Next to Name you may give your cronjob a name.
- Next to Job’you may enter the script or command that you would like to execute automatically. Please see below for examples.
- The Status option allows you to either have the cronjob Enabled or Disabled.
- Under When to execute, set the time(s) when the cronjob needs to execute.
- Select Save.
Correct Job syntax to use:
1. To execute a PHP script, you have the following different options depending on the location of your PHP script:
- Script in home folder: /usr/bin/php-wrapper /usr/home/your-FTP-user/path/to/script.php
- Script in public_html folder: /usr/bin/php-wrapper /usr/www/users/your-FTP-user/path/to/script.php
- Script in public_ssl folder: /usr/bin/php-wrapper /usr/wwws/users/your-FTP-user/path/to/script.php
2. To execute a script via a web address (URL), you may use the following:
- lynx -dump http://your-domain.com/path/to/your/script
3. To execute a bash script, you have the following different options depending on the location of your bash script:
- Script in home folder: /bin/bash /usr/home/your-FTP-user/path/to/your/script.sh
- Script in public_html folder: /bin/bash /usr/www/users/your-FTP-user/path/to/your/script.sh
- Script in public_ssl folder: /bin/bash /usr/wwws/users/your-FTP-user/path/to/your/script.sh
Delete a Cronjob
- Select the cronjob by ticking the checkbox next to the cronjob that you wish to delete.
- Select Delete at the top right hand side.
- Confirm that you wish to delete the cronjob by selecting Yes.
The email address to which cronjob success or failure notifications are sent, can be changed by following the below steps:
- Next to the Send email notification to field, enter in the required email address.
- Select Update
Other functions within the Cronjob Manager
- To manually run a cronjob, select Run under Action on the right hand side of the cronjob you wish to run.
- To edit an existing cronjob, select Edit under Action on the right hand side of the cronjob you wish to edit.
- If you are an advanced user, familiar with creating cronjobs within crontab, you may manually add your cronjob(s) within the Advanced View of the Cronjob Manager.
Limitations within the Cronjob Manager
- A maximum of 10 cronjobs are allowed.
- Cronjobs may not run more than once every two hours.
- Processes initiated from cronjobs will be cancelled automatically, should they use more system resources than permitted.