
4.2 Configuring mod perl 79
Afterthe mainLoadModule section, there’sa listof three additional mod-
ules. Uncomment the perl module line so that instead of:
#LoadModule perl_module modules/libperl.so
It reads:
LoadModule perl_module modules/libperl.so
After the main AddModule section, there’s another list of three additional
modules. Uncomment the libperl.c line so that instead of:
#AddModule libperl.c
It reads:
AddModule libperl.c
Afteryou’ve uncommented thesetwo lines, savethe httpd.conf file and
then restartyour server asdescribed in section 2.7on page 40. You should
now be running mod perl.
The mod perl package package is large and fairly complicated. It would
beimpossible to includeall it candoin thisguide. Thissection willexplain
how to set up mod perl in its most commonly used role as a replacement
for CGI.
The recommended way to do this is to edit the srm.conf file. Uncom-
ment (remove the #PERL#) the following directives. Instead of:
#PERL#Alias /perl/ /home/httpd/perl/
#PERL#<Location /perl>
#PERL#SetHandler perl-script
#PERL#PerlHandler Apache::Registry
#PERL#Options +ExecCGI
#PERL#</Location>
Komentáře k této Příručce