How do I use Perl/CGI on my shared hosting package?

How do I use Perl/CGI on my shared hosting package?

This answer explains how you can use Perl and CGI on your shared hosting package.

This article applies to Shared Hosting accounts.

 

Perl/CGI

Our servers have the capability to run CGI scripts written in Perl.

Using CGI Scripts

CGI scripts may be placed in a directory within your hosting account, simply create the directory naming it cgi-bin giving it 755 permissions, the script file must have the extension .pl. You can call your index page index.pl and index.cgi

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 using the "Ask a question" function in the support area of our website.

Path to Perl
/usr/bin/perl
Perl Version
5.6.8
Path To Sendmail
/usr/sbin/sendmail
Path To Your Webspace
Your webspace is inside your public_html directory

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.

Please note: Chat/IRC, web proxy and mailing list scripts are not allowed on our network under any circumstances.