Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Apache HTTP Server 2.4.26 under Linux

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to install Apache HTTP Server 2.4.26 under Linux", which is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn how to install Apache HTTP Server 2.4.26 under Linux.

1. Download apr-1.5.2.tar.gz, apr-util-1.5.4.tar.gz, pcre-8.37.tar.gz, httpd-2.4.26.tar.gz

two。 Extract apr-1.5.2.tar.gz, apr-util-1.5.4.tar.gz, pcre-8.37.tar.gz, httpd-2.4.26.tar.gz to the / usr/local/ directory

Tar-zxvf apr-1.5.2.tar.gz-C / usr/local/tar-zxvf apr-util-1.5.4.tar.gz-C / usr/local/tar-zxvf pcre-8.37.tar.gz-C / usr/local/tar-zxvf httpd-2.4.26.tar.gz-C / usr/local/

3. Move apr and apr-util to the specified directory (httpd-2.4.26/srclib/) and install the editor

Mv apr-1.5.2 httpd-2.4.26/srclib/aprmv apr-util-1.5.4 httpd-2.4.26/srclib/apr-utilyum install gcc gcc-c++

4. Configure and install pcre in the pcre-8.37 directory

. / configure-- prefix=/usr/local/pcre

Make

Make install

5. Configure and install httpd in the http-2.4.26 directory

. / configure-- prefix=/usr/local/apache-- with-included-apr-- with-pcre=/usr/local/pcre

Make

Make install

After success:

After the installation is complete, the generated directory is as follows

6. Modify httpd.conf to start apache

Vi conf/httpd.conf + / ServerName

Bin/apachectl start

7. Direct http://192.168.145.128/ access is certainly not possible, because the firewall does not open port 80. It can be verified as follows, because ping 192.168.145.128 works, but telnet 192.168.145.128 80 does not. For simplicity, turn off the firewall directly.

Service iptables stopchkconfig iptables off

The above is all the contents of the article "how to install Apache HTTP Server 2.4.26 under Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report