CGI, SSI and Perl - FAQ
All CGI programs must be uploaded to your cgi-bin directory. You should be sure to use ASCII mode when uploading Perl scripts.
In your HTML documents, reference your cgi script with the following path:
The following limitations will be placed on ALL CGI scripts:
CPU TIME = 10 Seconds This is the amount of CPU time one CGI program can use at a given time.
MAXIMUM FILESIZE = 100 KBytes This is the maximum size that one CGI script can reach
MAXIMUM STACK SIZE = 8 MBytes This is the amount of stack memory that can be used by any CGI program.
MAXIMUM NUMBER OF PROCESSES = 32 Processes This is the number of processes that can be created by the CGI program at a given time.
MAXIMUM NUMBER OF OPEN FILES = 32 Open Files This is the number of files that can be opened by the CGI program at a given time.
When executed, you must print an HTTP header followed by a blank line. The header must contain either a Content-type field or a Location field. eg. print "Content-type: text/htmlnn";
You have incorrectly set the path to Perl in your script.
You have used invalid Perl arguments.
Check the following:
script is located in your cgi-bin directory.
page that calls the script has the path properly specified.
script has world read & executable permission.
You need to make sure that the page with the SSI has a .shtml extension. The web server will only parse files with this extension.
Make sure that you are using the following format to call include your program:
Note that your SSI will not function if you use the exec cgi directive. You should also ensure that your file's extension is .shtml.
Yes. You may store the image and its associated map file in your own directories. The server then processes the map file as part of the normal html document parsing performed.
Yes. ftp access also allows you to run a variety of ommands. These include the chmod &chown commands.
The path would be as follows:
[domain] is replaced with your domain
[file] is replaced with the filename including sub-directory information being accessed
Here is an example: