Centos6.4-x86-64 system update system comes with Apache Http Server

Source: Internet
Author: User

Centos6.4-x86-64 system update system comes with Apache Http Server System comes with Apache Http Server version is relatively old, there are vulnerabilities. Upgrade Apache Http Server. General idea: First Delete the old one and then install the new one. The detailed steps are as follows: 1. delete all the things obtained by the old Apache rpm-qa httpd in version 1.1 (yum remove xxx) 1.2 delete old apr-util yum remove apr-util-devel apr-util-mysql apr-docs apr-devel apr-util-docs 2 install Apache Http Server latest stable version. 2.1 reference http://httpd.apache.org/docs/2.4/install.html download apr-1.4.8.tar.gz, apr-util-1.5.2.tar.gz 、pcre-8.21.tar.gz?httpd-2.4.6.tar.gz. 2.2 install gcc yum-y install gcc-c ++ 2.3 unzip the downloaded compressed package tar-xzf apr-1.4.8.tar.gz tar-xzf apr-util-1.5.2.tar.gz tar-xzf httpd-2.4.6.tar.gz tar-xzf pcre-8.21.tar.gz 2.4 install apr cd apr-1.4.8. /configure -- prefix =/usr/local/apr make install 2.5 install apr-util cd .. /apr-util-1.5.2. /configure -- prefix =/usr/local/apr-util -- with-apr =/usr/local/apr/bin/apr-1-config make install 2.6 install pcre cd .. /pcre-8.21. /configure -- prefix =/usr/local/pcre -- with-apr =/usr/local/apr/bin/apr-1-config make install 2.7 install apache cd .. /httpd-2.4.6. /configure -- prefix =/usr/local/apache -- with-pcre =/usr/local/pcre -- with-apr =/usr/local/apr -- with-apr-util = /usr/local/apr-util make install 2.8 start apahce/usr/local/apache/bin/apachectl start 2.9 to test whether the startup is successful http: // localhost: 80 reference: 1 firewall enables port 80 and port 22/sbin/iptables-I input-p tcp -- dport 80-j ACCEPT/sbin/iptables-I INPUT-p tcp -- dport 22-j ACCEPT/ etc/rc. d/init. d/iptables save 2 set apache to start automatically/etc/rc upon startup. d/rc. add/usr/local/apache/bin/apachectl start to local
 

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.