Mac OS 10.10.3 under Apache + MOD_WSGI Configuration "one"

Source: Internet
Author: User

A

First, the Mac comes with Apache, and under the/private/etc/apache2 path, you can use Apachectl-v to view the version number. My version number is as follows:

Server version:apache/2.4.10 (Unix)
Server Built:jan 8 2015 20:48:33

Two

Mod_wsgi download, find their official website, such as the following, need a ladder, you understand

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

Once downloaded, double-click the. tar and unzip it yourself, then I'll copy this directory to my/users/sophie/documents path.

"Three"./configure, then sudo make, and finally sudo make install

cd/users/sophie/documents/mod_wsgi-4.4.13

Ls-al, you will find this file under the current path configure, running

./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 is 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 error, it seems like the lack of permissions. sudo make, no 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-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/i Nclude/apr-1-g-o2-arch x86_64-i/system/library/frameworks/python.framework/versions/2.7/include/python2.7- Denable_dtrace-dmacosx-dndebug-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 terminal will prompt for password). Enter run, terminal output the last line should be

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

So far, the MOD_WSGI has been installed in Apache.


The landlord is busy today to cast resume, tomorrow morning, afternoon out to run the interview.
Blessing Landlord ~ Tomorrow evening back to the whole, django~~




Mac OS 10.10.3 under Apache + MOD_WSGI Configuration "one"

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.