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"