This page is meant to help any bewley.net customer troubleshoot CGI problems. For more general information check here
.cgi if they are not in your cgi-bin directory.
.cgi. If your programs are in cgi-bin they may be named anything, but to reduce the risk of your source code being viewed, it is highly recommended you name your programs with an extension of .cgi.
suEXEC is very strict. Your CGI must conform to the following.
Check the error_log and cgi.log. If your CGI program still isn't working correctly, be sure to check the error_log and cgi.log. User accounts will find the error log in /httpd/logs/bewley.net/error_log. Domain accounts will find the error log in ~/logs/error_log.
All users will also find a CGI log in /httpd/logs/cgi.log. This log is created by suExec and will be very helpful in troubleshoot the errors above.
Run your failing CGI and then type "tail ~/logs/error_log" or "tail /httpd/logs/bewley.net/error_log" and "tail /httpd/logs/cgi.log" to see any error messages.
Links to further debugging aids, such as The Idiot's Guide to Solving Perl CGI Problems are available on our main CGI page.