Can't Get CGI/Perl Scripts to Run
I have a dedicated server running Red Hat 7.2 and I just upgraded Apache to 1.3.26 and mod_perl. For some reason I can't get my .cgi or .pl scripts to run.When accessing a simple .cgi script, it comes up with a 'Forbidden' error. I've tried everythign I can think of and I'm out of guesses.
1. The path to perl is correct in the shebang line of my script. Here's what came upf or the location of perl:
perl: /usr/bin/perl /usr/local/bin/perl /usr/share/man/man1/perl.1.gz
2. This is what I have in the httpd.conf file:
LoadModule cgi_module libexec/mod_cgi.so
AddModule mod_cgi.c
------------------------------------
# AddHandler allows you to map certain file extensions to "handlers",
# actions unrelated to filetype. These can be either built into the server
# or added with the Action command (see below)
#
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
#AddHandler cgi-script .cgi
#AddHandler perl-script .pl
---------------------------------
NameVirtualHost 205.15.XX.XXX
<VirtualHost 205.15.XX.XXX>
DocumentRoot /home/login/public_html
UseCanonicalName off
ErrorLog /home/login/logs/error_log
CustomLog /home/login/logs/access_log combined
ScriptAlias /cgi-bin/ /home/login/public_html/cgi-bin/
AddHandler cgi-script .cgi
AddHandler perl-script .pl
DirectoryIndex index.htm index.html index.php index.cgi index.pl index.shtml
</VirtualHost>
3. I enabled the cgi module when compiling Apache.
If anybody could offer some suggestions as to how I can get them to work I would REALLY appreicate it.
Thanks,
JTM