The Practicalhost Cloud Hosting CGI servers were retired at the end of Q2 2015 in order to maintain the integrity of our systems.
We have since rooted the cgi-bin folder and changed permissions to 000. So while you can 'see' the cgi-bin folder, you do not have the required permissions to interact with it. As part of ongoing audits, our internal security team identified that CGI scripts being passed over HTTP(S) traffic increase the possibility of malicious action, to include CMS exploitation. As an alternative, you can execute scripts through our CRON servers,
including PERL or python.
Before scheduling a task, take a minute to review the five necessary components in creating a scheduled task on Cloud Hosting:
1. Task Name – You will need to name each cron job you schedule. The name you choose is completely up to you and does not have any specific requirements.
2. Email Address for Output - You will need a valid email address so you can receive notice once the job has completed. You may have to tune your spam filter settings to receive the desired status emails.
3. Command Language - What language is the script to be executed written in? Cloud Hosting supports the scheduling of scripts which execute in the following environments:
* PHP * Python * Perl * HTTP
Items to note about the scripting language options:
- The "Perl" option can also be used to execute shell scripts.
- The "HTTP" option causes a visit to the URL you provide (technically running "curl <URL>" for the cron task). The output is sent to the task log in your webroot's "logs" directory.
4. Command to Run – You’ll need to indicate the path to the script that you wish to be execute.
5. Frequency / Date / Time - How frequently do you want the task to run? Everyday? Once a week? Once a week on a certain day of the week? Once a month? Once a month on a certain day of the month? What time of day do you want the specified task to run? All of these variations are possible through the EnsureMail Control Panel (http://ensure.practicalhost.com).
Here’s an example of setting up a new scheduled task.
1. Log into the Cloud Sites Control Panel at http://ensure.practicalhost.com
2. Click on the listed website.
3. Click on the "Features" tab on the top navigation bar.
4. Scroll down to the section called “Scheduled Tasks (Cron Jobs).” This is where you will see all tasks that you have scheduled and their status for that particular domain.
5. Add a new task by clicking the “Add New Task” button. (NOTE: All newly created cron jobs are enabled by default.)
6. Enter a task name. For this example, let’s call our task as “Wake Me Up.”
7. Enter the email address where you want the output from your task to be sent. For this illustration, we’ll enter firstname.lastname@example.org.
8. The script that was chosen is written in Perl. So we’ll choose Perl as the command language.
9. Under the Command to Run option, it’s important to note that the top-level fully qualified path will be appended to the script path. Now the fully qualified path to our script is:
In this case, we would only have to enter “scripts/wakemeup.pl” in the field. “/mnt/Target01/123456/www.wakeupcall.com/” will automatically be appended. Please also note that the trailing slash is automatically added.
10. The next section involves scheduling the time when the job needs to be run. In our case, we want the script to run every day at 7:00AM. So we would change the selection under “Repeat by the: __” drop down menu to “Day.” In the “Time” field, we would enter “7:00.”
12. Click the “Add Task” button at the bottom and the cron job will be enabled.
NOTE: When you add a website through the Control Panel, a log directory is also created as a part of the website directory structure. In order for the cron tool to run properly, this directory structure must be preserved.
If you have any other questions on scheduling a task, please do not hesitate to contact our support team at email@example.com