mod_perl Tutorial

Getting mod_perl running on Dapper Drake

Make this symlink

ln -s /usr/lib/perl5/Bundle/Apache2.pm /usr/lib/perl5/Apache2.pm

The file /etc/apache2/mods-available/perl.load should look like this

LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
PerlModule Apache2

VirtualHost file should have these lines in it

PerlSetupEnv    On
PerlSwitches    -I/path/to/module/here
PerlModule      module_name

<Location />
    SetHandler  modperl
    PerlResponseHandler    module_name
</Location>

<Location /path/to/where/app/is/hosted/>
    SetHandler    perl-script
    PerlResponseHandler    module_name
</Location>

Red CrossHurricane Katrina XML FOAF 0.1 W3C XHTML 1.0 W3C CSS valid GET Firefox NO Software Patents