My technical adventures, hacks or what I do in my free time.
Saturday, August 18, 2007
how to enable mod_perl in apache2 for Fedora 6
I had a tough time in configuring this, may be my brain was not working at its best. perl.conf is the required conf file usually found under the httpd conf.d directory. In Fedora 6, it is found under /etc/httpd/conf.d/perl.conf. Open the file and uncomment and alter where ever necessary. Leave the PerlSwitches -w and PerlSwitches -T in your development environment and not in the production one. This will help you to identify problems easily. I usually consider it safe to keep the perl scripts in different directory as the default configuration goes. Uncomment the Alias /perl /var/www/perl and the subsequent Directory section. SetHandler perl-script PerlHandler ModPerl::Registry Options +ExecCGI