Apache source code compilation tutorial, apache source code compilation

Source: Internet
Author: User

Apache source code compilation tutorial, apache source code compilation

I. Install the dependency package in yum

Yum-y install gcc autoconf automake makepcre pcre-devel openssl-devel expat-devel

Ii. decompress the apr, apr-util, and httpd packages.

Tar-zxf apr-1.6.3.tar.gz-C/usr/src/

Tar-zxf apr-util-1.6.1.tar.gz-C/usr/src/

Tar-zxf httpd-2.4.29.tar.gz-C/usr/src/

Cd/usr/src/apr-1.6.3/# compile into apr package

./Configure

Make & make install

Cd/usr/src/apr-util-1.6.1/# compile the package into apr-util

./Configure -- with-apr =/usr/local/apr/

Make & make install

Cd/usr/src/httpd-2.4.29/# Enter httpd package Compilation

. /Configure -- prefix =/usr/local/apache2 -- enable-so -- enable-ssl -- enable-rewrite -- with-mpm = worker -- with-suexec-bin -- with-apr = /usr/local/apr/

Make & make install

/Usr/local/apache2/bin/apachectl start # start the service

Done

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.