安装pth-1.4.1
server# tar zxvf pth-1.4.1.tar.gz
server# cd pth-1.4.1
server# ./configure --enable-pthread
server# make
server# make test
server# make install
安装mm-1.1.3
server# tar zxvf mm-1.1.3.tar.gz
server# cd mm-1.1.3
server# ./configure --disable-shared
server# make
server# make test
server# make install
安装perl-5.6.1
server# tar zxvf perl-5.6.1.tar.gz
server# cd perl-5.6.1
server# sh Configure -de
server# make
server# make test
server# make install
安装zlib-1.1.4
server# tar zxvf zlib-1.1.4.tar.gz
server# cd zlib-1.1.4
server# ./configure
server# make test
server# make install
安装libpng-1.2.5 (need zlib-1.1.4、png)
server# pkg_add png-version
server# tar zxvf libpng-1.2.5.tar.gz
server# cd libpng-1.2.5
server# cp scripts/makefile.freebsd makefile
server# make
server# make test
server# make install
安装apache_1.3.27 + mod_ssl-2.8.12-1.3.27 (need OpenSSL、MM、Prel_5.6.0) + mod_perl-1.0-current
1、解压缩包(以下文件解压在同一个目录下)
server# tar zxvf apache_1.3.27.tar.gz
server# tar zxvf mod_ssl-2.8.12-1.3.27.tar.gz
server# tar zxvf mod_perl-1.0-current.tar
2、配置mod_ssl-2.8.12-1.3.27
server# cd mod_ssl-2.8.12-1.3.27
server# ./configure --with-apache=../apache_1.3.27 \
--with-mm=../mm-1.1.3 \
--prefix=/usr/local/apache \
--enable-shared=ssl
server# cd ..
3、配置安装mod_perl-1.27
server# cd mod_perl-1.27
server# perl Makefile.PL EVERYTHING=1 APACHE_SRC=../apache_1.3.27/src USE_APACI=1 PREP_HTTPD=1 DO_HTTPD=1 (Freebsd 4.7下有两处错误提示,忽略)
server# make
server# make install
server# cd ..
4、配置安装apache_1.3.27
server# cd apache_1.3.27
server# ./configure --prefix=/usr/local/apache \
--enable-module=ssl \
--activate-module=src/modules/perl/libperl.a \
--enable-module=most \
--enable-shared=max
server# make
server# make certificate(生成证书,按提示选择,并记下密码)
server# make install
安装mod_gzip-1.3.26
server# tar zxvf mod_gzip-1.3.26.1a.tar.gz
server# cd mod_gzip-1.3.26.1a
server# edit Makefile(将APXS的路径 APXS?=/usr/local/sbin/apxs 改成apache安装路径: APXS?=/usr/local/apache/bin/apxs)
server# make
server# make install
安装mod_fastcgi-2.4.0
server# tar zxvf mod_fastcgi-2.4.0.tar.gz
server# cd mod_fastcgi-2.4.0
server# /usr/local/apache/bin/apxs -o mod_fastcgi.so -c *.c
server# /usr/local/apache/bin/apxs -i -a -n fastcgi mod_fastcgi.so