Three steps to configure the lamp environment (I) Compile and install Apache using centos

Source: Internet
Author: User

Although the configuration of the lamp environment is much simpler today, it is still difficult for some friends who are not familiar with the Linux system. Here I will record my configuration process, hope to help you.

This section describes how to compile and install Apache in centos:

1. Download Apache server httpd-2.2.26

Wget http://apache.fayea.com/apache-mirror//httpd/httpd-2.2.26.tar.gz

2. install necessary compilers such as gcc

Yum install Autoconf automake libtool make

3. Extract

Tar zxvf httpd-2.2.26.tar.gz

4. Configure

CD httpd-2.2.26

./Configure-Prefix =/usr/local/apache2-enable-so-enable-mod-shared = most

5. Make

6. make install

Related Article

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.