Window under Python+apache+mod_wsgi+django configuration (python2.7)

Source: Internet
Author: User

Preface: Try to use Python to build a Web page, under Windows and Linux, this article mainly explains the problems and solutions encountered in the Python+apache+mod_wsgi+django server configuration process under window.

Body:

First, you need to download Python, Apache, Mod_wsgi, Django, as follows

mod_wsgi:http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi (because python2.7, so download mod_wsgi?4.4.21+ap24vc9?cp27?none ? WIN32.WHL)

apache:http://www.apachelounge.com/download/vc10/

Python: Please download the version 2.7 yourself before downloading Pycharm,django follow-up instructions on how to download

Then, configure Apache on your computer, unzip the Apache file, and then copy the extracted Apache24 folder into your project directory. Your project root directory is e:/wamp/apache24/, and if you want to put it in a different directory, you need to modify httpd.conf, including ServerRoot, DocumentRoot, Directories,scriptalias. You need to change the address of your Apache directory. (see here for Baidu, address: http://jingyan.baidu.com/article/91f5db1b359b861c7f05e319.html)

Next, win+r input cmd, command line (first enter D:, then enter CD E:/wamp/apache24) into the bin directory under Apache, enter httpd-k install Apache installed as Windows Backend service, If the input httpd-k install failed, read the newspaper what error, and then modify the httpd.conf according to the error.

Configure Apache reference address two: http://jingyan.baidu.com/article/d8072ac47baf0eec95cefdca.html

Window under Python+apache+mod_wsgi+django configuration (python2.7)

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.