secure
|
HostMaster
User's Guide - CGI Scripts
Section IV - COMMON PROBLEMS1) Troubleshooting Common Problems
2.1) Troubleshooting Common Problems
1.a) Access logsThey are located in /www/logs/. So, the access log for camper.com is in /www/logs/camper-access-log.
1.b) Error logsWe don't keep error logs for performance reasons. It's likely that what you might have used your error log to check on can be done another way. Ask support@dgl.com if you'd like help.
1.c) Cgi-bin scriptsCGI scripts should be placed in the subdirectory cgi-bin which should be under your www directory. If you do not have a cgi-bin directory, make it by typing mkdir cgi-bin while in your www directory. "How do I access cgi-bin scripts in the cgi-bin directory?" If your domain name is camper.com, access them as http://www.camper.com/cgi-camper/script_name. If /cgi-camper/ doesn't work for you, then contact us and ask us to activate your cgi-bin directory.
1.d) Perl scripts
"I get errors such as
Place a "\" before such offending @ characters. This is an incompatibility between Perl 5 and Perl 4. Alternatively you could change the first line in your Perl program from #!/usr/bin/perl to #!/usr/bin/perl4
1.e) ImagemapsRemember to utilize proper imagemap references... This is a proper imagemap reference:
<a href="logo.map"><img src="logo.gif" ISMAP> </A>
Possible mistakes: You didn't use NCSA format. Instead of saying djonly.map, you included your domain name or other information in your reference. (Sometimes causes problems.) You forgot to use the extension .map. You forgot the word ISMAP. You forgot to include the default line as the first line in your imagemap. When specifying rectangles, you didn't include the small numbers first, as in 0,0 100,100.
1.f) Anonymous ftpPut files in the directory named anonftp in your ftp directory. This will allow a file to be accessed by a customer with ftp://your_name/pub/your_name/file.
1.g) Setting permissions"Hey, how do I stop people who are not in my group from reading a directory?" Type chmod o-r directory while you are in the directory above it. "I don't care if people in my group can read my directory, but I don't want them to write in it!" Type chmod g-w directory while you are in the directory above it. "Who is in my group?" In general, each domain has its own group. If you find you are in the group users, let us know if you wish for your domain to have its own group. More information about permissions... To list the access permissions of a file or directory, type ls -ls *. r=read access, x=execute access, w=write access. The first three letters apply to you, the second three letters apply to your group, the last three letters apply to everyone else. Execute access enables you to run programs or enter directories. Examples of using chmod:
PEOPLE PERMISSIONS
u = the file's user (or owner) r = read access
g = the file's group x = execute access
o = others w = write access
a = the user, the group, and others.
chmod a+w = let everyone write to the file
chmod go-r = don't let people in the file's group or others to read
the file
chmod g+x = let people in the file's group execute the file
1.h) Post not implementedIf you are receiving this error message then chances are you probably are using the wrong reference for cgiemail. Use the reference "/cgi-bin/cgiemail/mail.txt" Another possibility is that you are pointing to a cgi-bin script that you have not put in your cgi-bin directory. Another possibility is that you have not asked us to activate your cgi-bin directory. In general this message really means that the web is not recognizing the cgi-bin script you are calling as a program, it thinks it is a regular text file.
This page maintained by Damar Group, Ltd. |