Manually install Apache on CentOS

Source: Internet
Author: User
It is better to compile and install the version by yourself. If the old version is installed in YUM mode, uninstall it as follows: # yumremovehttpd otherwise use # rpm-qa | grephttpd to delete one by one # rpm-e ...... download http: www.apache.org and find the latest instructions.

It is better to compile and install your own version.

If the old version is installed in YUM mode, uninstall it as follows:

# Yum remove Httpd

Otherwise, use

# Rpm-qa |GrepHttpd

Delete one by one
# Rpm-e ......

========================================================== ====

Download To http://www.apache.org/find the latest

Download instructionsExtractDelete the tar.gz file by mistake. Use ll to list the files.Rm+ The file name can be deleted.

========================================================== ===

Download the httpd-2.2.19.tar.gz see http://www.linuxIdC.com/linux/2011-07/41049.htm.

# Tar zxvf httpd-2.2.19.tar.gz

#CdHttpd-2.2.19

#./Configure -- prefix =/usr/local/apache2 /--Enable-Proxy -- enable-ssl -- enable-cgi -- enable-reWrite-- Enable-so -- enable-moDuLe = so

# Make

# Make install

Start

Start of Automatic Installation
# Service httpd restart

An error is prompted when you enter this information.Services not recognized by httpd

See another article about http://www.linuxidc.com/Linux/2011-08/41260.htm.

Manual start

#/Usr/local/apache2/bin/ApachectlStart

This indicates that the installation is successful.

Enter http: // localhost/in your browser/

In this case, it indicates that the operation is successful!

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.