Install Apache 2-fooled into centos 6

Source: Internet
Author: User

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.

 

 

 

 

 

 

 

 

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.