10 Sep 2010 
Support Center » Knowledgebase » CGI/Perl Script Installation
 CGI/Perl Script Installation
Solution Dear Customer,

CGI/Perl scripts can be quite tricky to install. Here are some basic that should help you.

Your /var/www/cgi-bin folder must be set to permissions 755 otherwise Perl/CGI files will not execute. By default this is the correct setting so do not change it.

All CGI/Perl files should be uploaded to:

/var/www/cgi-bin

Your path to the perl processor is:

/usr/bin/perl

Try uploading a "Hello World" (hello.pl) script to:

/var/www/cgi-bin

Here is basic "hello.pl" script:

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, world!\n";

You can execute this script using the URL:

http://www.yourdomainname.co.uk/cgi-bin/hello.pl

This should be enough to get you going with your first CGI/Perl script.

Kind Regards,

HelpDesk.

----------------------
keywords: path to perl, execute cgi, cgi script, perl script


Article Details
Article ID: 327
Created On: 27 Jan 2009 10:05 AM

 This answer was helpful  This answer was not helpful

 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | Troubleshooter | News | Downloads
Language:

Help Desk Software Help Desk Software By Kayako eSupport v3.70.01