Configure Apache + mod_wsgi in Mac OS 10.10.3 [1] and 10.10.3mod _ wsgi

Source: Internet
Author: User

Configure Apache + mod_wsgi in Mac OS 10.10.3 [1] and 10.10.3mod _ wsgi

[1]

First, MAC comes with Apache. In the/private/etc/apache2 path, you can use apachectl-v to view the version. My version is as follows:

Server version: Apache/2.4.10 (Unix)
Server built: Jan 8 2015 20:48:33

[2]

Download mod_wsgi and find their official website, as shown below. You need a ladder, you know

Https://code.google.com/p/modwsgi/

After downloading the folder, double-click .tar to automatically decompress it. Then, I copied the folder to my/Users/Sophie/Documents path.

[3]./configure, then sudo make, and finally sudo make install

Cd/Users/Sophie/Documents/mod_wsgi-4.4.13

Ls-al. The configure file is found in the current path.

./Configure

Checking for apxs2. .. no

Checking for apxs.../usr/sbin/apxs

Checking for gcc... gcc

Checking whether the C compiler works... yes

Checking for C compiler default output file name... a. out

Checking for suffix of executables...

Checking whether we are cross compiling... no

Checking for suffix of object files... o

Checking whether we are using the gnu c compiler... yes

Checking whether gcc accepts-g... yes

Checking for gcc option to accept ISO c89... none needed

Checking for prctl... no

Checking Apache version... 2.4.10

Checking for python.../usr/bin/python

Configure: creating./config. status

Config. status: creating Makefile

Then run make to report an error. It seems that the permission is insufficient, so sudo make does not report an error.

Sophie-mbp: mod_wsgi-4.4.13 Sophie $ make
. /Apxs-c-I/System/Library/Frameworks/Python. framework/Versions/2.7/include/python2.7-DENABLE_DTRACE-DMACOSX-DNDEBUG-DENABLE_DTRACE-Wc,-g-Wc,-O2-Wc, '-arch x86_64' src/server/mod_wsgi.c src/server/wsgi _*. c-L/System/Library/Frameworks/Python. framework/Versions/2.7/lib-L/System/Library/Frameworks/Python. framework/Versions/2.7/lib/python2.7/config-arch x86_64-lpython2.7-ldl-framework CoreFoundation
. /Libtool -- silent -- mode = compile/Applications/Xcode. app/Contents/Developer/Toolchains/XcodeDefault. xctoolchain/usr/bin/cc-DDARWIN-DSIGPROCMASK_SETS_THREAD_MASK-DDARWIN_10-I/usr/include/apache2-I/usr/include/apr-1-I/usr/include/apr-1-g- o2-arch x86_64-I/System/Library/Frameworks/Python. framework/Versions/2.7/include/python2.7-DENABLE_DTRACE-DMACOSX-DNDEBUG-DENABLE_DTRACE-c-o src/server/mod_wsgi.lo src/server/mod_wsgi.c & touch src/server/ mod_wsgi.slo
Rm: src/server/. libs/mod_wsgi.o: Permission denied
Error: unable to open output file 'src/server/. libs/mod_wsgi.o ':''
1 error generated.
Apxs: Error: Command failed with rc = 65536
.
Make: *** [src/server/mod_wsgi.la] Error 1


Then enter the command sudo make install (the hacker will prompt you to enter the password), press enter to execute, and the terminal output the last line should be

Chmod 755/usr/libexec/apache2/mod_wsgi.so

Now, mod_wsgi has been installed in apache.


The landlord is busy submitting his resume today. He will go out for an interview tomorrow morning and afternoon.
Bless the landlord ~ Come back tomorrow night, continue, Django ~~




Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.