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

Deploy the Apache installation of the LAMP architecture

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Source code compilation and installation of Apache

The origin of Apache

Originated from A Patchy Server, the famous open source Web service software released version 1.0 of the Apache service program in 1995. The Apache Software Foundation (ASF) is responsible for maintaining the latest name "Apache HTTP Server" official site: http://httpd.apache.org/

Features: open source, cross-platform applications support a variety of web programming languages modular design, stable operation, good security

Advantages of compilation and installation: greater freedom, customizable functions, timely access to the latest version, generally suitable for most linux versions, easy to implant and use

Installation process

1. Deploy the installation environment, and get the environment package by sharing the local machine.

two。 Decompress the environment package

3. Put two apr packages into the httpd package

4. Install the environment package

Yum-y install

Gcc gcc-c++: C language C++ language compiler

Make: a tool for converting source code files to executable files

Pcre-devel: supports the Perl language

Expat-devel: enable websites to parse files in html format

Perl: language compiler

. / configure: execute scripts, configuration files

-- prefix=/usr/local/httpd: specify the installation path

-- enable-so: open the core module

-- enable-rewrite: enable rewriting and hotlink protection

-- enable-charset-lite: enable the supported character set

-- enable-cgi: enable the universal gateway interface

5.make & & make install

6. Add startup script

7. Add official comments to the http configuration file

8. Modify the httpd main configuration file

9. Create a soft link

10. Turn off the firewall and turn on the service

View listening port

11. Test results

At this point, the Apache service installation is complete!

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