Install Apache2.2.17 with CentOS source code

Source: Internet
Author: User
Plugin. configure -- prefixusrlocalapache2 -- enable-so -- enable-threads -- with-mpmworker -- enable-cache --
  1. # Library required for Installation
  2. Yum-y install zlib-devel
  3. Cp/Home/root/Httpd-2.2.17.Tar.gz/usr/local/src
  4. Cd/Usr/local/src
  5. Tar xzvf httpd-2.2.17.Tar.gz
  6. ./Configure -- prefix =/usr/local/apache2 --Enable-So -- enable-threads -- with-mpm = worker -- enable-cache -- enable-reWrite= SharEd-Enable-deflate = shared -- enable-ExPires = shared
  7. Make
  8. Make install

 

  1. # Start apache
  2. /Usr/local/apache2/bin/ApachectlStart
  3. # If notice appears, such as httpd: cocould not reliably deteRmIne the server's fully qualified domain name, using127.0.0.1For ServerName
  4. Vi/usr/local/apache2/conf/httpd. conf
  5. Modify ServerName: ServerName localhost:80
  6. /Usr/local/apache2/bin/apachectl restart

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.