Linux deployment Python Django program-apache

Source: Internet
Author: User

1. Installing Apache

First unload your own httpd

RPM-E httpd--nodeps

Download four of files online

1, apr-1.4.6.tar.gz

2, apr-util-1.5.1.tar.gz

3, pcre-8.32.tar.gz

4, httpd-2.4.3.tar.gz

http://pan.baidu.com/share/link?shareid=169366&uk=1829018343

Install each of the four package root users separately

Installing apr-1.4.6.tar.gz

Tar xzf apr-1.4.6.tar.gz

./configure-prefix=/usr/local/apr

Make

Make install

Installing apr-util-1.5.1.tar.gz

Tar xzf apr-util-1.5.1.tar.gz

./configure-with-apr=/usr/local/apr

Make

Make install

Install C + + (must be installed before installing pcre-8.32 under Linux)

Yum install-y gcc gcc-c+ +

Installing Pcre

Tar xzf pcre-8.32.tar.gz

./configure-prefix=/usr/local/pcre

Make

Make install

Installing Apache

Tar xzf httpd-2.4.3.tar.gz

./configure-prefix=/usr/local/apache--with-apr=/usr/local/apr/--with-pcre=/usr/local/pcre/

Make

Make install

After the installation is complete, go to

httpd.conf add configuration under the/usr/local/apache/conf/path

ServerName localhost:80

Check to see if Apache is properly installed

to the/usr/local/apache/bin/path

./apachectl

Then log in to 127.0.0.1

Normal Condition:

Linux deployment Python Django program-apache

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.