I'm having issues getting mod_perl2 to render .pl scripts.
I installed the mod_perl2 package from the ports collection and configured httpd.conf as so:
The Apache error log reports
So it seems to be running.
I'm serving index.pl from htdocs and I get the RAW text versus a rendered page.
index.pl has chmod 755 permissions.
Not sure what's wrong.
Any ideas?
Thanks,
z3r0
I installed the mod_perl2 package from the ports collection and configured httpd.conf as so:
Code:
LoadModule perl_module libexec/apache2/mod_perl.so
PerlSwitches -wT
Alias /htdocs/ /usr/local/www/htdocs
<Location /htdocs/>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
Order allow,deny
Allow from all
</Location>
Code:
[Thu May 28 18:05:22 2009] [notice] Apache/2.0.63 (FreeBSD) mod_perl/2.0.4 Perl/v5.8.9 configured -- resuming normal operations
So it seems to be running.
I'm serving index.pl from htdocs and I get the RAW text versus a rendered page.
Code:
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print "Hello\n";
Not sure what's wrong.
Any ideas?
Thanks,
z3r0