Install mod_wsgi on Cent OS 5.x

First do what this link says:

http://b2ctran.wordpress.com/2013/03/08/enable-epel-repository-on-centos/

Build Python from the sources with –enable-shared

# cd Python-2.7
# ./configure –prefix=/opt/python2.7 –with-threads –enable-shared

export LD_LIBRARY_PATH=/opt/python2.7/lib/:$LD_LIBRARY_PATH
Download mod_wsgi-3.4.tar.gz

#./configure –with-apxs=/usr/sbin/apxs –with-python=/opt/python2.7/bin/python

# make && make install

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s