web hosting

Technical Reference
Setting Up Custom Cgi Scripts


To set up a CGI script to run on your server, first upload the script into your cgi-bin directory. Make sure that you use text transfer mode when you upload it - do not use binary transfer mode. In order to be executable you must change the permissions on your script after you upload it. To do this, telnet into your account, type cd cgi-bin and hit enter, and then type chmod 755 thescriptname and hit enter. For more information about this, read the part of the technical reference on Changing Your File Permissions.

To set up a PERL CGI script -

FAQ

How should I upload my cgi scripts, ASCII or Binary?

Always upload your cgi scripts in ASCII mode.  That is the number one problem why cgi scripts don't work.

Where do I put my CGI scripts?

You should put your scripts into your cgi-bin directory which is in your www directory.  The full URL path would be
http://www.yourdomain.com/cgi-bin/file.name   Here's how a line inside your html file might look when calling the cgi script:
<form method="POST" action="/cgi-bin/file.name">

What is your server path to perl and sendmail?

Our server path to perl is /usr/local/bin/perl and sendmail is /usr/lib/sendmail

How do I set permissions inside my cgi-bin?

If your script is getting an internal server error you probably don't have to right permissions set for your script.  Telnet into your cgi-bin directory and do the following: chmod o+x file.name  This will give universal  execute permissions for that file.  You could also do chmod 755 file.name

Table of Contents
Visit Our Virtual Mall

©November, 1997
MJ Enterprises
1221 Kara Lane
Modesto, Ca. 95355
Email Us

Last Updated 01-24-00

web hosting web hostin policies Web Hosting Support Manual Web Hosting Specs Web Hosting Packages Contact Web Hosting