Apache dso方式安装mod_perl

 

[root@server4 ~]# cd /usr/local/src/tarbag/
[root@server4 tarbag]# wget http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz
[root@server4 tarbag]# tar -zxvf mod_perl-2.0-current.tar.gz -C ../software/
[root@server4 tarbag]# cd ../software/mod_perl-2.0.4/
[root@server4 mod_perl-2.0.4]# perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
[root@server4 mod_perl-2.0.4]# make && make install
[root@server4 mod_perl-2.0.4]# ls /usr/local/apache2/modules/
httpd.exp mod_perl.so
[root@server4 mod_perl-2.0.4]# vi /usr/local/apache2/conf/httpd.conf
LoadModule perl_module modules/mod_perl.so
[root@server4 mod_perl-2.0.4]# /usr/local/apache2/bin/apachectl -t
Syntax OK
[root@server4 mod_perl-2.0.4]# /usr/local/apache2/bin/apachectl -k restart
[root@server4 mod_perl-2.0.4]# /usr/local/apache2/bin/apachectl -t -D DUMP_MODULES |grep perl
Syntax OK
perl_module (shared)

你可能感兴趣的:(Apache dso方式安装mod_perl)