1: First to the OpenSSL website next SSL source package, Http://www.openssl.org/source, and then extract: Tar-zxf xxx.tar.gz, enter the OpenSSL directory, execute
./config--prefix=/usr/local/openssl, then make && makes install (this can be installed with Yum Source: Yum install-y openssl-devel, The following Apache configuration will not add--enable-ssl \--with-ssl=/usr/localable-ssl \--with-ssl=/usr/local/openssl \);
2: Install Apr package, Apr-util package, these two can be downloaded to http://apr.apache.org/download.cgi, there is also install Pcre package, can go to http://jaist.dl.sourceforge.net/ project/pcre/pcre/8.35/
Download, note the order Oh (if not in order, see the error carefully).
Install the APR package first:
CD Apr,
./configure--PREFIX=/USR/LOCAL/APR
Make && make install
Then install the Apr-util package:
CD Apr-util
./configure--PREFIX=/USR/LOCAL/APR--WITH-APR=/USR/LOCAL/APR
Make && make install
Finally install the Pcre package:
CD Pcre
./configure--prefix=/usr/local/pcre
Make && make install
3: OK, depending on the installation is over, the Apache has played ^ ^, into Apache:
CD Apache
./configure--prefix=/usr/local/apache \
--SYSCONFDIR=/ETC \
--ENABLE-SO \
--with-mpm=prefork \
--ENABLE-SSL \
--WITH-SSL=/USR/LOCALABLE-SSL \
--WITH-SSL=/USR/LOCAL/OPENSSL \
--enable-rewrite \
--disable-autoindex \
--disable-userdir \
--WITH-APR=/USR/LOCAL/APR \
--with-apr-util=/usr/local/apr-util \
--with-pcre=/usr/local/pcre
Make && make install;
4:apache installation is complete, then there are some basic settings,
Cp/usr/local/apache/bin/apachectl/etc/init.d/httpd
Vi/etc/init.d/httpd
In the "#!/bin/sh" plus the following two lines (this egg is dead, Baidu slowly search to explain it)
# chkconfig:35 70 30
# Description:apache
Chkconfig--add httpd
5: Start apache,service httpd start,ps aux | grep httpd is not a lump of a lump of things ^-^, congratulations on success!!
CentOS 6.3 Source Installation Apache