首页 » 日记 » 2012年11月底部署VPS

安装Apache

Apache httpd-2.4.3

$ ./configure --prefix=$HOME/tools/apache2 --enable-ssl --enable-so --enable-rewrite
configure: error: APR not found.  Please read the documentation.

下载APR

$ wget http://apache.dataguru.cn//apr/apr-1.4.6.tar.gz
$ md5sum apr-1.4.6.tar.gz 
76cc4457fbb71eefdafa27dba8f511fb  apr-1.4.6.tar.gz
$ tar -xzf apr-1.4.6.tar.gz 
$ cd apr-1.4.6
$ ./configure --prefix=$HOME/tools/apr-1.4.6
$ make
$ make install

再次编译Apache

$ ./configure --prefix=$HOME/tools/apache2 --enable-ssl --enable-so --enable-rewrite --with-apr=$HOME/tools/apr-1.4.6/
configure: error: APR-util not found.  Please read the documentation.

下载APR-UTIL

$ wget http://apache.dataguru.cn//apr/apr-util-1.5.1.tar.gz
$ tar -xzf apr-util-1.5.1.tar.gz 
$ cd apr-util-1.5.1
$ ./configure --prefix=$HOME/tools/apr-util-1.5.1 --with-apr=/home/bailing/tools/apr-1.4.6/
$ make
$ make install

再次编译Apache

$ ./configure --prefix=$HOME/tools/apache2 --enable-ssl --enable-so --enable-rewrite --with-apr=$HOME/tools/apr-1.4.6/ --with-apr-util=/home/bailing/tools/apr-util-1.5.1/
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

下载PCRE

$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.31.tar.bz2
$ tar -xjf pcre-8.31.tar.bz2 
$ cd pcre-8.31
$ ./configure --prefix=$HOME/tools/pcre-8.31
$ make
$ make install

分享

0