2011年6月3日 星期五

Apache httpd-2.3.12-beta Install (Apache 2.3.12 beta 安裝)

reference connection:
曲折的源码安装http2.3.6版本
httpd-2.3.8 + php-5.3.3 + mysql-5.1.33

1. Download an available  version of Apache Server. 
For example: the version I used is  httpd-2.3.12-beta.tar.bz2 
(If you found that you got a error about "APR-util version 1.3.0 or later is required ..." after you had installed it, believe me, you used the wrong source file.)

2. Download these files to install 
(1) apr-1.4.5.tar.gz
(2) apr-util-1.3.12.tar.gz
(3) pcre-8.12.tar.gz

3. Install  apr-1.4.5.tar.gz 
shell> tar  zxfv apr-1.4.5.tar.gz
shell> cd  apr-1.4.5
shell> ./configure --prefix=/usr/local/apr/
shell> make  &&  make install

4. Install  apr-util-1.3.12.tar.gz 
shell> tar  zxfv apr-util-1.3.12.tar.gz
shell> cd  apr-util-1.3.12
shell> ./configure --prefix=/usr/local/apr-util/ --with-apr=/usr/local/apr/
shell> make  &&  make install

5. Install  pcre-8.12.tar.gz 
shell> tar  zxfv pcre-8.12.tar.gz
shell> cd   pcre-8.12
shell> ./configure --prefix=/usr/local/pcre/
shell> make  &&  make install

6. Install  httpd-2.3.12-beta.tar.bz2 
uncompress httpd-2.3.12-beta.tar.bz2 to folder httpd-2.3.12-beta
shell> cd  httpd-2.3.12-beta
shell> ./configure --prefix=/usr/local/apache/ \
--with-apr=/usr/local/apr/ \
--with-apr-util=/usr/local/apr-util \
--with-pcre=/usr/local/pcre \
--with-mpm=worker 
shell> make  &&  make install

That's done.

沒有留言: