[Tutorial] installApache + MySQL + pythonmacos_mysql

Source: Internet
Author: User
[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.

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.