Welcome to the Freeola Internet customer support pages. This guide is designed to give general information about CGI scripting. For more internet help topics please visit our main Support Page.
CGI stands for Common Gateway Interface. It allows you to run a script on the Freeola Internet servers which can perform tasks that are not available in HTML. For example, hit counters, guestbooks and random image displays to name but a few.
CGI scripts are simply text or ASCII files which are 'compiled on the fly' (interpreted by a program on the server rather than the browser) by the Perl interpreter. They can be edited or created on any text editor and must be saved with a '.cgi' file extension.
To run a script on the Freeola Server there are a few configuration settings for your script which must be changed or added inside the script. The following instructions are for the standard hosting servers we provide, for VIP Hosting customers please click here or visit the bottom of this page for some slightly different settings needed.
The following instructions apply to customers using Freeola's standard hosting service.
All Freeola standard hosting accounts have usernames beginning with the characters sr, if you have a vip username please see the bottom section of this page.
This must be on the VERY first line or the script will not work.
Some or all of the following settings may be required by your script. If you have downloaded a third party script there may be comments within the script to tell you where to place them. Instructions could also be within any text files which accompany the script.
For sending e-mail from your script
This depends on your Freeola User Name. The last 2 numbers form part of the path (e.g. For 'sr0011223' the path is /freeola/users/3/2/sr0011223. For 'sr0024658' the path is /freeola/users/8/5/sr0024658).
As the with the server path above to web space above, this is based on your Freeola User Name (e.g. For 'sr0011223' the path is /freeola/users/3/2/sr0011223/cgi-shl/. For 'sr0024658' the path is /freeola/users/8/5/sr0024658/cgi-shl/.
Your web address as viewed by a browser (e.g. www.bob.spursfans.com or www.mydomain.com).
Your web address with '/cgi-bin/' added to the end (e.g. www.bob.spursfans.com/cgi-bin/).
This is probably the directory you wish to send information from your script to. Your web address plus a temporary file name (e.g. www.bob.spursfans.com/tempfile/).
The e-mail address which you would like your script to send e-mails to. The '@' symbol in the e-mail address should be preceded by a '\' symbol. For example, '[email protected]' would be john\@spursfans.co.uk. This is only required if you are setting an email address in the script itself.
CGI scripts must be placed within your cgi-shl directory in your web space account otherwise it will not work. The file MUST be transferred in 'Text' or 'ASCII' mode and NOT in 'Automatic' or 'Binary' mode.
Now that your script is on the server you need to set the 'Permissions' for the script using your FTP software, this is the way that you open access to the script for people accessing the website. Take care with this procedure as setting the wrong permissions can deny even you access to the script.
In your FTP software there should be a link for 'Set Permissions' or CHMOD (if you cannot find this link you may have to use a different FTP program). There are two ways to change permissions for a file. The first is to enter a number which will identify the permissions for the file. ALL scripts in the cgi-shl directory should be set to CHMOD 755.
If your script outputs information to or creates a file or a web page the file or page must be stored in a sub-directory of the htdocs directory. Create this sub-directory using your FTP software, then using CHMOD again set permissions for the directory and any file within it to 777.
There are a few changes to the above information for customers using a VIP or VIP+ Hosting service. All other settings are the same as listed above apart from the exceptions given below:
The full path to your web space root for VIP customers is simply /httpd/
Similar to above, the path to the CGI directory is /httpd/cgi-bin/
CGI scripts must be placed within your cgi-bin directory in your web space account otherwise it will not work. The file MUST be transferred in 'Text' or 'ASCII' mode and NOT in 'Automatic' or 'Binary' mode.
Freeola & GetDotted are rated
Check out some of our customer testimonials below:
It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.