install apache from centos source

The system is centos, and the source code installs the apache server

1. First download the apache source installation package, URL: http://httpd.apache.org/download.cgi

2. Select the corresponding version and install it according to the documentation, URL: http://httpd.apache.org/docs/

3. Before apache2.4 is installed, install APR and APR-Util, PCRE, Perl, etc.

4. Install APR and APR-Util first, and download the source packages of both, http://apr.apache.org/

Unzip, enter the folder, install APR, ./configure --prefix='installation location' make&make install, if there is no configure file, you need to execute ./buildconf first

Similar to installing APR-Util, ./configure --prefix='installation location' --with-apr='apr installation location' make&make install For the specific process, see the website: http://apr.apache.org/compiling_unix.html

5. Other PCRE, Perl installed

6. Install Apache, go to the folder, ./configure --prefix='installation location' --with-apr='apr installation location' make&make install and it is installed

It should be noted that the file is uploaded from windows to linux. It is best to just upload the compressed package and then decompress it on linux. If the decompressed file is uploaded on windows, there may be some unknown problems.

There are some problems, find the answers here: http://www.mamicode.com/info-detail-1950100.html

https://www.cnblogs.com/zyos/p/7663717.html


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325850516&siteId=291194637