Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Source code installation Apache http server

Shulou Source: shulou.com Published: 2022-06-01 05:53:07 10月04日 Update

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

The download is completed as follows

Extract 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

Install apr- "apr-util-" pcre- "httpd sequentially

Installation depends on apr package, installation path / data/httpd/apr

Executing make & & make install

After installing the dependency package apr-util, install path / data/httpd/apr-util

Executing make & & make install

Then install the dependency package pcre, installation path / data/httpd/pcre

Executing make & & make install

Finally, install thhpd. Installation path / data/httpd

/ 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

Executing make & & make install

Installation completed

Start the httpd service

Service httpd start

Tags: Path situation sequence service source code Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Linux Redmi MySQL macOS