
CHAPTER TWO - COMMON PROBLEMS
"I can't find my access log!"
They are in /www/logs/. So, the access log for yourdomain.com is in /www/logs/yourdomain-access-log.
"What is the format of my access log?"
They are kept in the Common Log Format, like nearly all access logs from recent WWW
servers are. Briefly, that format is:
host ident authuser date request status bytes
We only keep active logs for the current month and the past two months. If you would like older logs, they can be found in /www/logs/month - where month is something like sept96. You will need to copy your compressed file into your directory and uncompress it with "gunzip".
If you want referer and agent logs installed, please e-mail clubct2@clubct.com.
"I can't find my error log?"
We don't keep error logs for each domain for performance reasons. You can access the error log for all the virtual domains at /www/logs/_-error-log. If you are using the error log to debug a problem (such as with CGIs), use the command "tail /www/logs/_-error-log" to view the end of the file. It's likely that what you might have used your error log to check on can be done another way. Ask clubct2@clubct.com if you'd like help.
We will keep an error log for an appropriate charge. (Or referer log or agent log.)
"Where do I put my cgi scripts?"
Put them anywhere - just make sure they end with the extension .cgi; we recommend that you put your scripts in a directory such as cgi-local. PLEASE DON'T CREATE A CGI-BIN DIRECTORY. CGI-BIN IS A RESERVED SYSTEM DIRECTORY. CGI-LOCAL or anything else will work.
"I don't have a cgi-local directory!"
Make it by typing mkdir cgi-local while in your www directory.
"How do I access pre-installed cgi-bin scripts in the main cgi-bin directory?"
If your domain name is salty.com, access them as http://www.salty.com/cgi-bin/script_name.
"What version Perl is loaded on ClubCT's servers?"
Perl 5.004.
If you are using a newer version of Perl, double check with
Tech
Support to see if we haven't already loaded it onto our servers.
ClubCT servers are constantly being upgraded with the latest software.
"I am being told file not found"
"I am being told No such file or directory"
Upload your Perl script in ascii mode, not binary mode.
Use rz -a for telnet users, or the ascii mode for ftp users.
Sometimes it seems like this is asked about once a day, so we're going to repeat it, loudly.
Upload your Perl script in ascii mode, not binary mode. Use rz -a for telnet users, or the ascii mode for ftp users.
Or, it could be that your script expects Perl in a different place than we have it. Make sure that the first line of the script starts #!/usr/local/bin/perl or #!/usr/bin/perl.
"I get errors such as
Literal @sdfsdf now requires backslash at ./test.rob line 2, within string Execution of ./test.rob aborted due to compilation errors."
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
"Hey! my imagemaps don't work!"
This is a proper imagemap reference:
<a href="djonly.map"><img src="djonly.gif" ISMAP> </A>
Possible mistakes:
"I am getting the message 'POST not implemented'. Help!"
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 script. Check your pathnames!
In general this message really means that the WWW server is not recognizing the cgi script you are calling as a program, it thinks it is a regular text file.
This error message means that you are trying to access a directory with no index.html, or that directory is not world-executable, or that file is not world-readable.
Put the following in .htaccess in the directory you want the index enabled for:
Options ExecCGI Indexes Includes FollowSymLinks
"Where should I store files for anonymous ftp access?"
Put 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.com/pub/your_name/file. (Ex: ftp://ftp.yourdomain.com/pub/yourdomain/file)
"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.
"Tell me more 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
See Chapter 5.