A discussion of cgi-bin issues in the Directadmin environment can be found in the Directadmin Knowledgebase at http://help.directadmin.com/. Of special interest is this entry:
cgi files generate Internal Server Error at http://help.directadmin.com/item.php?id=6
Note especially that not all cgi-bin errors will show up in the Apache logs that you can view from the Directadmin screens. In particular, if a cgi-bin program is owned by any user or group other than you, or if it or its containing directory is writable by anybody other than you, an suexec error will occur that can be found only in the /var/log/httpd/suexec_log file described in the Knowledgebase entry above. To view this log file you will need to ssh to the server, log in, and view the log from the command line. Also see other hints for accessing log files in the example debugging script discussed below.
Example Debugging Script
The script /usr/local/bin/printenv.cgi has been made available to help you
debug cgi-in programs. Copy this script into your cgi-bin directory and
follow the instructions inside the script.
This document is: http://faq.rahul.net/cgi-bin/fom.cgi?file=20
[Search]
[Appearance]
This is a Faq-O-Matic 2.721.