interLink Hawaii
Web Tech FAQ
How do I upload my CGI scripts
using ftp?
All CGI programs must be uploaded to your
cgi-bin directory, which was created automatically when we set up
your site. The cgi-bin directory is not part of the public
directory where your HTML code resides. You should be sure to use ASCII mode when
uploading Perl scripts.
How do I call my CGI
script?In your HTML documents, reference your cgi script with
the following path: http://www.yourdomain.com/cgi-bin/script Of course, you will use your actual domain name in place of "yourdomain.com".
Are there any limitations placed
on CGI scripts?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.
What version of Perl is
supported? 5.005_03
What path do I use to call
Perl? /usr/bin/perl
What path do I use to call
sendmail? /usr/sbin/sendmail
I'm getting 'Internal server
error' running my Perl script. Whats wrong?
- When your script is 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/html\n\n";
- You may not have set the correct path to Perl in your script.
- You may have used invalid Perl arguments
I'm getting 'file not found'
running my script. Whats wrong?
Check the
following: 1. script is located in your cgi-bin
directory. 2. page that calls the script has the path
properly specified 3. script has world read &
executable permission.
Do you support Server Side
Includes?
Yes!
My SSI doesn't seem to be
running at all. What could be wrong?
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.
I'm getting '[an error occurred
while processing this directive]' when running a perl script as an SSI.
What can I do?Make sure that you are using the following
format to call include your program: <!--#include virtual="/cgi-bin/script.pl"--> 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
Can I user server-parsed image
maps?
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.
Can I change file permissions if
I only have FTP access?
Yes. ftp access also allows you to run
a variety of commands. These include the chmod &chown
commands.
What path do I use to access
files in my home directory using my cgi script?
The path would
be as follows: /services/webpages/[first_letter_of_domain]/[second_letter_of_domain]/[domain]/[file]
[domain] is replaced with your
domain [file] is replaced with the filename
including sub-directory information being accessed
Here
is an example...
/services/webpages/h/o/hosting.bigisland.com/chat/chat.log
|