What are common steps in troubleshooting CGI programs?
If your CGI scripts are experiencing problems, try these common troubleshooting methods: 1. The server gives the message “File Not Found” when I call “http://www.mydomain.com/cgi-bin/filename.cgi” and I know it’s in the cgi-bin directory under my account. Solution: The directory /cgi-bin is reserved for server-wide cgis available to everyone (such as a counter and an email form processor), so even if you create a directory called “cgi-bin,” the server will look in the main one and not yours. Instead of calling your directory “cgi-bin,” call it “cgi” or “cgibin”, then try again. 2. A Perl program or C source code was uploaded in binary and not ASCII mode. Solution: re-upload the file in the correct mode. 3. The file does not have the correct permissions to be able to run. Solution: give the file the correct permissions. (All programs must be “chmod 755” or “775” in order to run. The html part of a guestbook program — the part where the entries are added — should be 766. All other html