07 Sep 2010 
Support Center » Knowledgebase » How do I use CGI-Bin for Linux Plans?
 How do I use CGI-Bin for Linux Plans?
Solution

The Common Gateway Interface is a way of connecting your web pages to other programs that are running on the server which visitors wouldn't normally have access to. Most corporate web sites on the Internet today make use of CGI programs or scripts to allow their visitors to browse online catalogues or keep track of their orders in real time.

You have an ability to use CGI scripts on your website. The subdirectory "webspace/cgi-bin" located in your home directory is intended for storing your cgi files.

Before testing that CGI really works, devote a couple of minutes to read the information you might find necessary.

Paths and Versions:
Perl Version 5.8.1.
Path to Perl /usr/bin/perl
GID 48
Supported Extensions .pl, .cgi

Python Version 2.2.3
Path to Python /usr/bin/python
Supported Extension .py

Path to Sendmail /usr/sbin/sendmail
Operating System RedHat Linux

CGI Directory /cgi-bin/

The URL to your CGIs is as follows: http://domainname/cgi-bin/cgi-script
Replace the “domainname” with the real name of your domain and “cgi-script” with the script name.

Here are some tips for you to bear in mind when using CGI:
• Perl-scripts being transferred via FTP should be in “ASCII” code, not in “binary”.
• All scripts are executed only in cgi-bin directory.
• After uploading cgi-script change its permission to 755. Use the ExpertHost File Manager from within the control panel to do this quickly


Applies to:
Shared Hosting (Linux)




Article Details
Article ID: 4
Created On: 05 May 2008 04:28 PM

 This answer was helpful  This answer was not helpful

 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | News
Language:
Experthost.com

 

ExpertHost.com is a wholly owned brand of NJ Tech Solutions, Inc. © 2008. All rights reserved.
* Monthly price on 12 month pre-payment.