0
I have my Apache showing perl scripts as plaint text, not executing them. Googling and playing with settings made me frustrating, because there are numerous and long samples, which are mostly ignored by my server.
The question is: what are absolutely necessary minimal requirements to run Perl CGI scripts on my web site?
Please no security issues, no other issues, only running Perl.
Currently I have Apache2
installed, mod_perl
installed, perl
installed, virtual hosts installed, execution permission granted.
And I have index.cgi
is displayed as plain text.
The following is my size config:
One special question is: why AddHandler
directive is silently ignored twice? If it was explicitly said, that .cgi
files should be handled by cgi-script
, then how this can be silently ignored (no any warning in logs).
From my point of view, any directive should be either executed or caused an error. It can't just hang in the air as if it was no any directive at all.
UPDATE
The files are Bugzilla installation. I.e. there are plenty of *.cgi
files with perl code inside.
Is the generated HTML code shown as plain text or the perl code? Did you really mean
*.GCI
or did you mean*.cgi
? – Axel Beckert – 2014-12-18T19:03:32.137Perl code is displayed. I meant lowercase. – Suzan Cioc – 2014-12-18T19:20:04.330
And I guess you also meant
*.cgi
instead of*.gci
. (Now lowercase so the second difference can be spotted more easily, too.) Hrm. – Axel Beckert – 2014-12-18T19:48:59.420