You need to edit and configure your httpd.conf file for directories that you want to run cgi's from. Default it only setups up the directory such as /home/httpd/cgi-bin. If you need other directories to run cgi from you will need to add to what directories httpd will allow cgi's to run from. Such lines look like this:
<Directory /home/httpd/html/mail>
AllowOverride None
Options Includes ExecCGI
Order allow,deny
Allow from all
</Directory>
And you also need to make sure that this section is probably about the same as the follows.
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
Options FollowSymLinks Includes ExecCGI
Taking care of this and making sure you have permissions correct on running cgi's
(ie chmod 755 <filename.cgi) and other files that are written to by cgi's. (ie chmod 666 - which is your read/write access) also the directory permissions play a roll.
Hope this helps
Maxit