I've been searching for awhile and haven't found anything that works for me thus far. I just want my .pl and .cgi files to run in cgi-bin instead of just outputting the code.
Here's the kicker, everything worked fine when I was on AS3. I upgraded to AS4 and now the scripts won't run. Here's the excerpt from my httpd.conf file that is relevant. The permissions are correct on the files and the folders. I'm running Apache 2.0.52 and mod_perl-1.99_16.
First I load mod_perl. Note: I didn't have to do that before.
Code:
LoadModule perl_module /etc/httpd/modules/mod_perl.so
Starting apache without that module doesn't show mod_perl being loaded in error_log. Then,
Code:
ScriptAlias /cgi-bin/ /etc/httpd/cgi-bin/
Does cgi-bin specifically have to be in or out of DocumentRoot? I've tried both ways to no avail.
Code:
<Directory /etc/httpd/cgi-bin/>
AllowOverride All
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
Code:
Alias /perl/ /etc/httpd/cgi-bin/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
Allow from all
</Location>
To use cgi anywhere
Code:
AddHandler cgi-script .cgi .pl
That's all I can find regarding CGI and Perl. Anyone notice anything I'm missing. Oh, I know AS4 has selinux implemented. For now, it's been completely disabled. iptables are allowing ports 22 and 80 only. Thanks for any help.