[Tutorial] installApache + MySQL + pythonmacos pythonApache
My OS version is 10.8.5
Last revision: 2014-06-27
Here are the instructions:
# Download & install XAMPP (you only get 64-bit version for mac)
Http://www.apachefriends.org/download.html
# Install python 2.7.x (64-bit)
Http://www.python.org/download/releases/2.7.7/
# Check python bit-version (run the following script in Python)
import struct; print( 8 * struct.calcsize("P"))
(Shocould print out '64 ′)
# Check python version (run the following script in Python)
import sys; print (sys.version)
(Print out '2. 7.7 'in this moment)
# Download mod_wsgi (a bride for Apache and Python)
Http://github.com/GrahamDumpleton/mod_wsgi/releases
# Install mod_wsgi
Make distclean
./Configure-with-apxs =/Applications/XAMPP/xamppfiles/bin/apxs-with-python =/Library/Frameworks/Python. framework/Versions/2.7/bin/python
Make
Sudo make install
# Add load wsgi module script in Apache configuration (httpd. conf)
LoadModule wsgi_module modules/mod_wsgi.so
That's all then you can launch Apache & MySQL in XAMPP now.
Good luck!
[IMPORT!] The Apache bit-version must be matched with the Python bit-version, or you will get error while Apache trying to launch. they must be both 64-bit version or both 32-bit version.