|
NB: It is important to keep track of system upgrades; a major upgrade can cause programs to stop working. Upgrades are announced well in advance, via MOTDs and in panix.upgrades. We urge everyone to keep track of those announcements and to do thorough testing in the new environment. |
The Apache Server software that we run on our web servers has certain group ownership and permissions requirments for CGI scripts. For more information about permissions in UNIX and how to change them see the man page for the chmod command. Please check to see that your script meets the following requirments:
<!--#exec cmd="/usr/bin/date"-->If you are running a script that is in your pcgi-bin it might look something like this for corp-web customers:
<!--#exec cmd="/htdocs/youruserid/pcgi-bin/bar.pl"-->and like this for cheap-web and personal web customers:
<!--#exec cmd="/htdocs/userdirs/youruserid/pcgi-bin/bar.pl"-->
agrep $USER /net/local/lib/httpd/httpd_logs/userdirs/error_log.www* | tail
Telnet to panix
Telnet to panix2
Telnet to panix3
cd corp-web/httpd_logs
tail error_log
Telnet to panix
Telnet to panix2
Telnet to panix3
cd /net/local/lib/httpd/httpd_logs/userdirs
grep program name cgi-log.www*(Put the name of the program you are troubleshooting in place of program name above.)
[19:19:55 26-03-97]: uid: (13215/13215) gid: (99/99) new-orderform.cgiit means that your program ran but it must be exiting for some reason. Try putting
print ("Content-type:text/plain\n\n");
at the very beginning of your script, this will let you see any error
messages that are currently disappearing in to the void. If you get a
blank page instead of an error message, add a whole pile of print
statements to try to see how far it gets and where it is dying.
Telnet to panix
Telnet to panix2
Telnet to panix3
If you use the Panix menu, type ! to get to a UNIX shell prompt.
Type the following:
telnet www.domain-name
Replace domain-name above with your domain name
You will see output that looks something like this:
In order to exit this screen please type
CNTL-D
This means hold down the 'Control' key on your keyboard while pressing
the letter 'd'. You do not need to hold down the shift key as well, the 'D' in
'CNTL-D' is capital by convention only. You will be returned to a UNIX prompt.
Telnet to panix
How to Read Your cgi-log for Corporate Web Pages
If you have a telnet client installed and your web browser is properly
configured, you can use the telnet links below to login to your
panix user machine. Then follow these instructions:
For example, if your domain name is smith.com then you would type www.smith.com
Trying 166.84.58.136...
Connected to www.dube.com.
Escape character is '^]'.
/ (web6.panix.com) (ttyp0)
login:
The name of your webserver is found on the second to last line.
In this example the web server is web6.
cd /net/local/lib/httpd/httpd_logs/corp-dirs
Then type
agrep program name cgi-log.webn | tail
(Put the name of the program you are troubleshooting in place of
program name above and change webn to the name of your
web server.)
[19:19:55 26-03-97]: uid: (13215/13215) gid: (99/99) new-orderform.cgi
it means that your program ran but it must be exiting for some
reason. Try putting
print ("Content-type:text/plain\n\n");
at the very beginning of your script, this will let you see any error
messages that are currently disappearing in to the void. If you get a
blank page instead of an error message, add a whole pile of print
statements to try to see how far it gets and where it is dying.
Telnet to panix2
Telnet to panix3
STEP 4: It Still Doesn't Work, What Do I Do Now?
If you have tried all of these things and you are still having a
problem try posting to the newsgroup panix.user.html
There are many panix users and staff members who frequent that group
who can help you figure out what is wrong. Please post as much
information as you can about the script and any troubleshooting
measures you have already taken.
Last Modified Thursday, 01-Feb-2007 17:43:34 EST