Get the App
SLTechnology News&Howtos  ›  Servers  › 

Deploy the Apache installation of the LAMP architecture

Shulou Source: shulou.com Published: 2022-06-02 23:32:33 09月22日 Update

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!

Tags: File language environment service compilation version support configuration function official module source code compiler script software good famous larger two advantages Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Redmi Docker Shulou Information Apple