Software that drives the Internet!

 

 

 






Support
Frame for Flash intro


CGI Script Support

 

Can you provide relevent CGI path(S)?

Path to Perl:
/usr/bin/perl


Path to PHP:
/usr/bin/php


Path to Sendmail:
/usr/sbin/sendmail


Path to Date:
/usr/bin/ddate

CGI will work in any directory of your server space, so the URL is completly up to you, most people prefer a folder called "cgi-bin" within their "web" folder. top

Base (root) folder for use in cgi programs:
/home/sites/www.yourname.com/web
Be sure to replace yourname.com with your site name. For example, the cgi path for dbicwebhosting.com would be "/home/sites/www.dbicwebhosting.com/web" top


Will I be able to use Server Side Includes? (SSI)
If your plan includes it, SSI is enabled, but you must name each SSI usage page with a ".shtml" extension. For example, index.html using SSI would be index.shtml. top


What cgi software is supported by your servers?
Perl, C & C++ cgi applications. PHP 4.1.0 is also installed on the server. top

 

What is cgi?
Common Gateway Interface or CGI is a specification which allows Web users to run programs on your server. CGI is not a programming language; it is a gateway which allows small programs called "scripts" to be run over the Internet. CGI scripts take input passed to them from a form on a Web page, process the information, and then format the results in HTML. The result is usually a Web page that is generated by the script itself.

The language of choice for CGI processing is Perl, (Practical Extraction and Reporting Language.) Perl is often used because it is specifically designed to grab multiple text files and format them nicely, making it exceptional for writing HTML.

Other languages used occasionally for CGI Scripts are C/C++, Visual Basic, AppleScript, UNIX Shell, and Tcl. CGI Scripts can do almost anything when they are properly written.
To understand how CGI scripts work you should have a good understanding of HTML and some programming experience. top



Note: These are general guidelines for installing Perl Scripts. Refer to the readme file that came with your specific script for more information.

To install your Perl scripts, follow these steps:

Open the script files with an editor such as Notepad and make sure that the server paths are correctly entered (See Server Paths below.)

Upload the script files to your server in ASCII mode. The script will not work if you upload the files in BINARY mode. You can place the script files anywhere in the main site directory (/web.) We recommend you create a directory called "cgi-bin" and place all your scripts there. The path to "cgi-bin" should be "/web/cgi-bin"

Change the permissions for your script files. Most scripts require that you make them executable. Many FTP applications allow you to change a file to executable by right-clicking the file on the remote system and clicking CHMOD (Refer to the readme file that came with the script for more information on CHMOD settings.) top


Installing FormMail!
FormMail.pl is a generic www form to email gateway. It will parse the results of any form you create with HTML and send them to the specified user. FormMail.pl is a Perl script and it has many formatting and operational options, most of which can be specified through the form, meaning you don't need any programming knowledge or multiple scripts for multiple forms.


To install FormMail.pl on your server, follow these steps:

Create your form using HTML.

Download "FormMail.pl"

Unzip the files to any directory on your computer.

Open FormMail.pl with an editor such as Notepad. Change the value of the "referers" variable. This variable should contain your domain name. For example, if your domain is abc.com the line should read: @referers =('www.abc.com'); Also, make sure that the paths to Perl and Sendmail are correct. They should be exactly as it appears on the following screenshot:



You now need to edit your form so that it can execute the script. You do this by editing the "form action" statement in the form to point to the path where FormMail.pl resides. For example, if you are going to place FormMail.pl in a directory called cgi-bin that resides on your /web directory, you need to edit the "form action" statement to read:
"form action="/cgi-bin/FormMail.pl" as shown on the following screenshot:
Also make sure that the method is "post."


You now need to tell FormMail.pl where to send email. You do this by entering a "hidden field" on the form itself. Enter the following line on your form and make sure you enter the email address where you would like to receive email.


Upload FormMail.pl to your server in ASCII mode.

Change the permissions for FormMail. FormMail requires that you make it executable. Many FTP applications allow you to change a file to executable by right-clicking the file on the remote system and clicking CHMOD. FormMail requires a CHMOD setting of 755. top

Do you provide additional support for CGI?
We don't provide additional support for CGI, other then you can find under the support pages, any problem you may encounter with cgi scripts are always the coding or configuration of the script you use, please contact the people that coded the script in question or check your configuration of the script in question. top


 


© DBIC Webhosting.com