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