Source installation Apache HTTP Server

Source: Internet
Author: User

Download installation and Dependency packages

wget http://mirrors.cnnic.cn/apache//httpd/httpd-2.4.18.tar.bz2

wget http://mirrors.cnnic.cn/apache//apr/apr-1.5.2.tar.gz

wget http://mirrors.cnnic.cn/apache//apr/apr-util-1.5.4.tar.gz

wget Ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.zip

Download completed as follows

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7E/66/wKiom1b97ZDQz3dEAABOu9I1RfI023.png "title=" 1.png " alt= "Wkiom1b97zdqz3deaabou9i1rfi023.png"/>

Unpacking the installation package

TAR-JXVF httpd-2.4.18.tar.bz2

TAR-ZXVF apr-1.5.2.tar.gz

TAR-ZXVF apr-util-1.5.4.tar.gz

Unzip Pcre-8.38.zip

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7E/62/wKioL1b976Lx8mFhAABXg4OFmCA370.png "title=" 2.png " alt= "Wkiol1b976lx8mfhaabxg4ofmca370.png"/>

Sequential installation apr-"apr-util-" pcre-"httpd

Install dependent APR package, installation path/DATA/HTTPD/APR

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7E/66/wKiom1b977aDvNB5AAD5aI0mRhw868.png "title=" 4.png " alt= "Wkiom1b977advnb5aad5ai0mrhw868.png"/>

Performing the Make && make install

Install the dependency package Apr-util, the installation path/data/httpd/apr-util

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7E/62/wKioL1b98aDDOWl5AADnmRBsWIA005.png "title=" 5.png " alt= "Wkiol1b98addowl5aadnmrbswia005.png"/>

Performing the Make && make install

Install the dependent package Pcre, install the path/data/httpd/pcre

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7E/62/wKioL1b98yDy7gz0AABYBucuR9U174.png "title=" 6.png " alt= "Wkiol1b98ydy7gz0aabybucur9u174.png"/>

Performing the Make && make install

Finally, install THHPD. Installation path/DATA/HTTPD

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7E/66/wKiom1b9-bnBsXXgAADzUCW-4yk307.png "title=" 7.png " alt= "Wkiom1b9-bnbsxxgaadzucw-4yk307.png"/>

./configure--prefix=/data/httpd--enable-mods-shared=all--enable-so--enable-proxy-ajp--enable-rewrite--with-apr =/DATA/HTTPD/APR--with-apr-util=/data/httpd/apr-util/--with-pcre=/data/httpd/pcre

Performing the Make && make install

Installation Complete

Start the httpd service

Service httpd Start


Source installation Apache HTTP Server

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.