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)
立即学习“Python免费学习笔记(深入)”;
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"))(should 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.
Tags:Apache,mod_wsgi,MySQL,Python,XAMPP
python怎么学习?python怎么入门?python在哪学?python怎么学才快?不用担心,这里为大家提供了python速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号