[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
最新推荐文章于 2025-12-31 22:55:32 发布
6

被折叠的 条评论
为什么被折叠?



