Loading the mod_perl Module

Today I hit an issue with mod_perl that had me going around in circles for about an hour, my mod_perl handler wasn’t being invoked, and I was getting a directory listing instead. With the able assistance of a co-worker the problem was found and solved pretty quickly.

If you add the “LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so” line into the config file yourself ensure it’s the last line otherwise something else such as mod_dir or mod_index will execute instead and you’ll go insane trying to work it out.

I’m hoping Google will pick this post up and help the next poor soul.