The process of installing Apache under Linux 1. Download the httpd-2.4.tar.gz installation package 2. Download apr, apr-util, pcre-8.30 3. Install the apr command (1) First decompress the command: tar -zxvf apr (2) Enter the decompressed file and execute the configuration command: ./configure --prefix=/usr/local/apr where --prefix= is followed by the directory where the program is installed (3) Execute the compile command: make (4) Execute the installation command: make install 4. Install apr-util process (1) First decompress the command: tar -zxvf apr-util (2) Enter the decompressed file and execute the configuration command: ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr where --with- is followed by Installers and directories that apr-util depends on (3) Execute the compile command: make (4) Execute the installation command: make install 5. The process of installing pcre-8.30 (1) First decompress the command: tar -zxvf pcre-8.30 (2) Enter the decompressed file and execute the configuration command: ./configure --prefix=/usr/local/pcre During this process, configure: error: You need a C++ compiler for C++ support will appear The solution is: yum install -y gcc gcc-c++ (3) Execute the compile command: make (4) Execute the installation command: make install 6. Install httpd-2.4 process (1) First decompress the command: tar -zxvf httpd-2.4.tar.gz (2) Enter the decompressed file and execute the configuration command: .configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/ apr-util --with-pcre=/usr/local/pcre Problems that may arise during this process are: configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/ Solution: If the pcre installation is successful and still prompts this problem, it may be a problem with the pcre version, try to choose pcre-8.30 or the previous version (3) Execute the compile command: make (4) Execute the installation command: make install