CentOS 6.3 Source Installation Apache

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.