CGI Programs
Support 1st Host Web
   

   
 

Home
Getting Started
Uploading Your Web Site
Control Panel
Basic Hosting Tutorials
Advanced Tutorials
Email Features
Web Site Statistics
Cool Tools
Search Engine Submit
CGI Center
MySQL Databases
Sub Domains
We Recommend

 

 

 

 

 

 

 

 

 

 

Using CGI programming:

 

bullet Where to place your CGI scripts
bullet Perl Modules
bullet The path to Perl
bullet The path to Sendmail
bullet Setting directories within your cgi scripts
bullet Understanding File Permissions
bullet Setting File Permissions
bullet Warnings and Security Issues
bullet Pre-installed CGI Scripts 
bullet SSI and .shtml

 

CGI stands for "Common Gateway Interface," or computer programs running on the web server that can be invoked from a www page through a web browser. 

 

CGI scripts need to be saved in ASCII format and uploaded to your server's cgi-bin in ASCII format.

 

This page provides you with information needed when configuring scripts and other information regarding your CGI-bin.

 

Put your cgi-bin scripts in the public_html subdirectory named "cgi-bin".

 

Here are your paths to the common server resources that CGI scripts often require:

 

bulletDate: /bin/date
bulletSendmail: /usr/lib/sendmail
bulletPerl5: #!/usr/bin/perl
bulletServerpath: /home/username/domain-www/cgi-bin
bulletRoot path: /home/username/
(puts you in your the root of your account)
bulletDomain directory: /home/username/public_html
(puts you in your public_html directory)
bulletCgi-bin path: /home/username/public_html/cgi-bin/filename
(puts you in your cgi-bin)

 

NOTE: Do not include domain extension (.com) anywhere you list your domain name in the cgi paths. 

 

Perl Modules:

 

Our servers come ready to run most Perl scripts. Most scripts require specific modules to be installed on the server.

 

Please check our module list to make sure the ones you need are there. If they are not present on the server we can (in most cases) install them for you for free.

 

bullet Perl Modules

 

The path to Perl:

One of the first things you must do when configuring a script, is set the correct path to the Perl interpreter, which is the engine responsible for processing the script.   

 

The path to Perl on our servers is: #!/usr/bin/perl

The path to Sendmail:

Some programs such as the ones, which send email will need to know where the Sendmail program resides on the server. The script will typically have a setting like this: $mailprog = '/usr/sbin/sendmail'; and will want you to set it appropriately.

 

Sendmail on our servers can be found here:

 

/usr/sbin/sendmail 

 

and 

 

/usr/lib/sendmail.

 

Free HTML Tutorials

 

Questions? Just E-mail!

 

Questions?

 

Help is always just an email away! Our support team is available 24 hours a day, 7 days a week, 365 days a year! Just email your questions to:

 

Support

 

and we'll be back as quickly as possible! There is never a charge for technical support at 1st Host Web. We are happy to assist you.

 

 

Join the 100 Club!

 

We provide you with 3500 unique visitors each day for an entire month! That's 100,000 visitors each month!

 

Total cost: $350.00

 

bullet See details 

 

Doorway Pages

 

Doorway sites are web sites that have been specially developed to rank highly in search results for specific search words or search phrases. People visiting a doorway site as a result of a search engine query are presented with either a link to enter your main web site or they are automatically redirected to your main web site.

 

We host doorway sites! In fact, we will even build them for you! No monthly fees - no cost per visitor - no commissions to pay! Learn about our 1st Host Web doorway site packages!

 

Click Here For More Info

 

 

   
   Back Home Up Next

 

Copyright © 2002 1st Host Web

281-477-8650