Apache httpd2.4.18 Installation Tutorial

Source: Internet
Author: User

Before installing Apache httpd2.4.18, you need to install several other software, namely pcre, Apr, Apr-util.

The three software were:

pcre:https://sourceforge.net/projects/pcre/files/pcre/8.38/

Apr and apr-util:http://mirrors.cnnic.cn/apache/httpd/


Because I do not know the need to install the above software, so in the installation process to eat a lot of loss (ashamed), will be a tortuous installation process written out, I hope to help you.

One, download Apache httpd-2.4.18 installation package

To download the installation package from the network using the wget command:


Decompression Pack: TAR-JXVF httpd-2.4.18.tar.bz2

Second, set up the installation environment

Enter the httpd-2.4.18 directory:


Execute command:

where "/opt/httpd-2.4.18" is the specified installation directory.

1, compatibility issues 1:


Solution: Install APR, download URL article at the beginning has been opened, the use of source installation, the process is not repeat.

2, compatibility issues 2:


Solution: Install apr-util, download URL article at the beginning has been opened, the use of source installation, the process is not repeat.

3, compatibility issues 3:


Solution: Install pcre, download URL article at the beginning has been opened, the use of source installation, the process is not repeat.

When the above problem does not occur, execute again

Third, compile

Execute command: Make

Four, installation

Execute command: Make install

V. Launch of HTTPD Service

Execute command:/opt/httpd-2.4.18/bin/apachectl-k start

Where:/opt/httpd-2.4.18 is the installation directory I specified.

It can be seen that an error occurred because ServerName was not modified.

Enter the httpd.conf file and modify the servername as shown:


After the modification succeeds, save the file. Start again


The startup succeeds as shown above.

VI. Testing

Enter the native IP in the browser, the IP of my host is 10.0.2.15. So enter 10.0.2.15 in the browser and the results are as follows:


Description The server has been installed successfully!!!

Vii. Summary

1, in the installation of files must read the Readme file, master software dependencies and other considerations, to avoid the installation failure problems;

2. Apr-util is dependent on APR, so the APR should be installed first.


I email [email protected], Welcome to Exchange!


Apache httpd2.4.18 Installation Tutorial

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.