24/7 Support (123) 456 7890 /Email Us

CGI Scripts

Our Windows 2003 servers have the capability to run CGI scripts written in Perl. You can also use PerlScript to embed Perl code in your ASP pages.

Using CGI Scripts
CGI scripts may be placed in any directory within your hosting account, the script file must have the extension .pl. You can call your index page index.pl

System Information
The following parameters may be required when configuring CGI scripts to run on our servers. If you require any more information regarding the configuration of our servers please contact us.

Path To Perl The server will recognise your Perl script by its file extension .pl, thus you need not set the path to Perl within your script.
Perl Version ActivePerl 5.005_03
Path To Sendmail Sendmail is not available on Windows servers, the alternative blat.exe may be referenced without any qualifying path.
Path To Your Webspace See the File System documentation

Perl Modules
All modules included in the standard perl distribution are available on your account. Due to the nature of shared hosting it is not normally possible for us to install additional modules on the request of clients.

Debugging Perl CGI Scripts
If you see a ‘500 Internal Server Error’ or ‘Script Produced No Output’ page when you attempt to run your CGI script, you have an error with your code or a misconfiguration. You may be able to establish the cause of the error by including the code

use CGI::Carp qw( fatalsToBrowser );

as the first line of your script.

Notes on CGI Scripts
Please note that chat/IRC, web proxy and mailing list scripts are not allowed on our network under any circumstances. See our Acceptable Use Policy for more information.

Copyright © 2016 | Designed & Developed By A2A PRODUCTION