Installing Apache mod_perl

by Administrator 21. June 2009 15:51

Download the package mod_perl-2.0-current.tar.gz

# tar -zxf mod_perl-2.0-current.tar.gz
# cd mod_perl-2.0.0-RC4/
# perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
# make && make test
# make install

 

Make sure mod_perl.so already in the /usr/local/httpd/modules
# ls /usr/local/httpd/modules/mod_perl.so

Edit the configuration file for apache.
# vi /usr/local/httpd/conf/httpd.conf

Add the following line to the perl module.
LoadModule perl_module modules/mod_perl.so
PerlModule Apache2

Re-run apache server.
# service httpd restart

Tags: ,

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

About the author

Each morning when I open my eyes I say to myself: I, not events, have the power to make me happy or unhappy today. I can choose which it shall be. Yesterday is dead, tomorrow hasn’t arrived yet. I have just one day, today, and I’m going to be happy in it

Month List

Page List