PERL  

Support Topics: PERL: User's Guide: Getting Started with PERL

In order to use PERL scripts you need to have us set up an executables directory, called the "cgi-bin". This is the directory where any Perl script needs to be placed in order to work. For security reasons this is the only directory from where you can run Perl scripts. Perl scripts uploaded into the folder called simply "bin" will not work. The folder called "bin" is used by some of our systems to provide functions for FTP and is not for Perl scripts.

Simply click here to request a CGI-BIN setup. Perl scripts will not work until we set this up for you.

Once we set the "cgi-bin" up you'll find it inside your "public_html" directory, or the root directory of the website for which you needed Perl. Inside this directory is a script called "printenv.pl" which you can use to test whether Perl is working - it also gives you environment variable values that you may find useful when configuring any Perl script you want to install.

You should be able to access printenv.pl by the following URL:

http://www.yourdomain.com/cgi-bin/printenv.pl

Where "yourdomain.com" is the domain name for the site the "cgi-bin" is set up for. If Perl is working you should see some gobbletygook similar to the below:

SERVER_SOFTWARE = Apache/1.2.6.46 WebTen/3.0 SSL/0.9.0b
GATEWAY_INTERFACE = CGI/1.1
DOCUMENT_ROOT =
/usr/local/etc/httpd/WebSites/yourusername/public_html
REMOTE_ADDR = 207.174.31.00
APACHE_PORT = 80
SERVER_PROTOCOL = HTTP/1.1
REQUEST_METHOD = GET
REMOTE_HOST = 207.174.31.00
QUERY_STRING =
HTTP_USER_AGENT =
Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
PATH = /bin:/usr/bin:/usr/ucb:/usr/bsd:/usr/local/bin
HTTP_ACCEPT = */*
HTTP_CONNECTION = Keep-Alive
REMOTE_PORT = 50174
HTTP_ACCEPT_LANGUAGE = en
SCRIPT_NAME = /cgi-bin/printenv.pl
SCRIPT_FILENAME = /WebSites/yourusername/public_html/cgi-bin/printenv.pl
HTTP_UA_OS = MacOS
SERVER_NAME = www.yourdomain.com
REQUEST_URI = /cgi-bin/printenv.pl
SERVER_PORT = 80
HTTP_EXTENSION = Security/Remote-Passphrase
HTTP_UA_CPU = PPC
HTTP_HOST = www.yourdomain.com
SERVER_ADMIN = webmaster@machighway.com

If you don't see the above your cgi-bin was set up improperly so please contact us to let us know.

 

 

Support Topics

Blogs
Calendars
E-Commerce
Email
Form to Email
Guestbooks
Hit Counters
MacHighway Banners
Mailing Lists
Message boards and Forums
PERL
PHP & MySQL
Security
Site Wide Search Engines
Spam
SSL
Traffic Reports
Uploading / Publishing
Video
WebDAV