Centos7.0 install Apache-2.4.10

Source: Internet
Author: User

After centos7.0 is installed, the Apache version installed through yum is 2.4.6.

Then, the HTTPd service is stopped, and the default installed version is uninstalled.

Systemctl stop httpd. Service

Rpm-Qa | grep httpd # view the Apache package and find the name (for example, httpd-2.4.6-18.el6_2.1.x86_64) use the following command to delete rpm-e httpd-2.2.15-15.el6_2.1.x86_64 # But first Delete the dependent Apache package or yum list | grep httpd # view Apache package name, such as httpd. x86_64yum erase httpd. x86_64 # The dependent package will be automatically removed to start installation 2.4.10wgethttp: // mirrors.cnnic.cn/apache/httpd/httpd-2.4.10.tar.gz wget http://apache.dataguru.cn/apr/apr-1.5.1.tar.gzwget http://apache.dataguru.cn/apr/apr-util-1.5.3.tar.gzcd apr-1.5.1. /configure -- prefix =/usr/local/aprmakemake installcd apr-util-1.5.3. /configure -- prefix =/usr/local/APR-util -- With-Apr =/usr/local/aprmakemake install CD/usr/local/srctar-xvf httpd-2.4.10.tar.gz. /configure -- prefix =/usr/local/Apache -- sysconfdir =/etc/httpd2 -- enable-so -- enable-SSL -- enable-CGI -- enable-Rewrite -- With-zlib -- -PCRE -- With-Apr =/usr/local/APR -- With-Apr-util =/usr/local/APR-util -- enable-modules = most -- enable-MPMs-shared = all -- With-MPM = event -- enable-proxy-fcgi # The parameters are: httpd installation path httpd configuration file storage path enable modular mode enable SSL Secure Connection # enable CGI Script Function enable URL rewriting enable server compression enable regular expressions support APR installation path # APR util installation path enable common module to ensure that Apache works properly and the multi-process model is non-static # enable the event asynchronous model Makemake install

This article is from the "Wang Sheng swimming pool" blog, please be sure to keep this source http://wangsheng1.blog.51cto.com/29473/1553790

Centos7.0 install Apache-2.4.10

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.