Diagnosing Problems with CGI Scripts
Why doesn't my CGI work?
It could be any number of things, because setting up and running CGI scripts is a complex process. Here are some of the things to check if you get an error message..
- Before customizing scripts, save them as is, changing only the path and file variables.
- Try running the script from a telnet connection to see if it runs there (change to appropriate path and type in name of cgi).
- Check your server's error log - you might see helpful messages.
- Check to see that the path information is correct for any files you are referencing from your CGI script.
- Make sure that the ACTION="" of your script points to the correct CGI program with the correct URL. Have you also "chmoded" the CGI file to 755)? Are any log files also chmoded (to 777)?