1) Install Python 2.7.
cd /usr/local/src wget --no-check-certificate https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz tar xf Python-2.7.6.tar.xz cd Python-2.7.6 ./configure --prefix=/usr/local --enable-shared make && make altinstall ln -s /usr/local/lib/libpython2.7.so.1.0 /usr/lib ln -s /usr/local/lib/libpython2.7.so.1.0 /lib ldconfig
2) Install mod_wsgi.
cd /usr/local/src git clone https://github.com/GrahamDumpleton/mod_wsgi.git cd mod_wsgi ./configure --with-python=/usr/local/bin/python2.7 --with-apxs=/usr/local/apache/bin/apxs make && make install echo "LoadModule wsgi_module modules/mod_wsgi.so" >> /usr/local/apache/conf/httpd.conf
3) Restart Apache
service httpd restart
4) Check if modules is loaded
/usr/local/apache/bin/httpd -M