(ugh - had this all typed out, and then the power went out. second time's the charm..)
I can't seem to get mod_perl to 'activate' on my system. I have a small program (testit.html - yes, I know that it has an .html extension, but that is taken care of)
That prints out all the ENV variables:
#!/usr/bin/perl -X
print "Content-type: text/plain\n\n";
print "Server's environment\n";
foreach ( keys %ENV ) {
print "$_\t$ENV{$_}<br>\n";
}
exit;
These two variables are of note:
GATEWAY_INTERFACE CGI/1.1
MOD_PERL mod_perl/1.99_16
See how there is a mod_perl var, but the gateway is still CGI?
Here's my conf:
LoadModule perl_module modules/mod_perl.so
Alias /diroftest "/var/www/html/diroftest"
<Directory "/var/www/html/billy2/bvs">
Options Indexes FollowSymLinks
Options +Includes
DirectoryIndex index.shtml
SetHandler perl-script
AddHandler perl-script .html
Options +ExecCGI
PerlHandler ModPerl::PerlRun
# PerlHandler ModPerl::Registry
# PerlOptions +ParseHeaders
AllowOverride None
Order allow,deny
Allow from all
</Directory>
For the record, I get the exact same error if:
- I use ScriptAlias instead of Alias
- I use ::Registry instead of ::PerlRun
Any idea why this gateway wouldn't be flipping over to CGI-Perl/1.1? It has to be something stupid on my part..
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.