in reply to How to get diagnostic information for a web app when nothing is written to the error log
Does your CGI script work when run without the webserver?