On the web server that you are doing CGI programming, put the HTML pages with forms in a directory somewhere under the server's "document root" and the CGI program somewhere under the server's "cgi bin". The CGI program must have permissions properly set to be executed by the server. Furthermore, if the CGI program reads or writes to other files, then the server must have permission to do so. |
You can first debug your Perl program by executing it directly in the cgi-bin directory and providing test input in a file |
prog.pl < input.data |
When a CGI program crashes, an error should show up in the server's error_log file. |