Win+apache+mod_wsgi+flask environmental set-up and project deployment

Source: Internet
Author: User
Tags apache download vc9

The above word frame is not introduced, check a bit, under win, the above collocation is more recommended. And in Linux, the comparison recommended is Flask+gunicorn. At present, the main server is win, so first of all, I have to record the process of configuring the environment on win, to be left behind to look back.

Because it is on win, several frameworks have to be compiled first, and are compiled with the same version of the compiler, and the number of digits should be consistent (I am using the Win32 bit). These are all online said, I went to try, my is python2.7.13 x86,apache2.4.27 x86 vc9,mod_wsgi-py27-vc9 x86, install Python I don't say, now say install Apache. In fact, say is installed, it is not as direct as to start. Pick a mod_wsgi with the compiler to compile the Apache download Download, and then if you are not placed in the C-packing directory, you will go to conf/hpptd.conf to change the service path, the default is C:/apache24. After the change, go directly to the Apache/bin to start httpd OK. Starting with command line 1 is OK, and double-clicking is OK.


This thing started up and that's it, without any feedback. Double-click Start also, directly to a black window, nothing displayed. But the service has been started. Then the visit to localhost the Apache home page shows that the launch was successful. And then stop the service I was directly fork off the black window. Personally feel very bad experience.

Then copy and paste the Mod_wsgi module into the Apache/modules folder, and then configure it in Apache conf/httpd.conf:


And then start. I encountered a mistake saying that the module could not be loaded. Then check it out, it's the wrong version. I also downloaded a corresponding Apache version of the binary file, and then replace the original file, and then start the error has not been.


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.