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