Unfortunately, the security scan of the Organization found that Apache had a vulnerability. Because it was installed through yum, the latest version was only 2.2.15, so I had to delete a 2.4.3 manual tool.
First, download an Apache file from the official website.
Then, compile and install. Follow these steps:
# Tar zxvf httpd-2.4.3.tar.gz
# Cd httpd-2.4.3
#./Configure -- prefix =/usr/local/apache2
# Make
# Make install
However, an error will be reported during configure, mainly because three APR tasks are missing (I don't know what it is), APR not found, APR-util not found, PCRE, I searched for help from the Internet, deleted the yum installation, and compiled and installed it manually:
1. download the required software package:
Wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz
Wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
Wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
2. Delete the old installation:
Yum remove Apr-util-devel APR Apr-util-mysql Apr-docs Apr-devel Apr-util-docs
3. perform the following steps to compile and install the SDK:
A: Solve the Problem of APR not found >>>>>
[Root @ XT test] # tar-zxf apr-1.4.5.tar.gz
[Root @ XT test] # apr-1.4.5 CD
[Root @ XT apr-1.4.5] #./configure -- prefix =/usr/local/APR
[Root @ XT apr-1.4.5] # Make & make install
B: Solve the Problem of APR-util not found >>>>
[Root @ XT test] # tar-zxf apr-util-1.3.12.tar.gz
[Root @ XT test] # apr-util-1.3.12 CD
[Root @ XT apr-util-1.3.12] #./configure -- prefix =/usr/local/APR-util-with-Apr =/usr/local/APR/bin/apr-1-config
[Root @ XT apr-util-1.3.12] # Make & make install
C: Solve the PCRE problem >>>>>>>>>
[Root @ XT test] # unzip-O pcre-8.10.zip
[Root @ XT test] # pcre-8.10 CD
[Root @ XT pcre-8.10] #./configure -- prefix =/usr/local/PCRE
[Root @ XT pcre-8.10] # Make & make install
When installing the APR series, there was no GCC problem again, and GCC was installed with yum.
After installing Apr, run the configure under the httpd-2.4.3 again, but three parameters need to be added: -- With-Apr =/usr/local/APR -- With-Apr-util =/usr/local/APR-util/-- With-PCRE =/usr/local/PCRE
After that, everything went smoothly.