[root@server ~]# cd ~
[root@server
~]# wget http://modwsgi.googlecode.com/files/mod_wsgi-3.4.tar.gz
[root@server
~]# tar xvf mod_wsgi-3.4.tar.gz
[root@server
~]# cd mod_wsgi-3.4
# configured mod_wsgi with the installed python2.7
[root@server
~]#./configure --with-python=/usr/local/bin/python2.7
[root@server
~]# make
[root@server
~]# make install
# The below two commands are very important. Replace /usr/local/lib with the folder where you have installed libpython2.7.so.1.0 if it is not in /usr/local/lib.
[root@server ~]# LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/python
[root@server ~]# ldconfig
# Restart Apache Server
[root@server ~]# service httpd restart
[root@server ~]# ldd /etc/httpd/modules/mod_wsgi.so
linux-vdso.so.1 => (0x00007fffc0aa9000)
libpython2.7.so.1.0 => /usr/lib/libpython2.7.so.1.0 (0x00007f03a5b20000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f03a5903000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f03a56fe000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f03a54fb000)
libm.so.6 => /lib64/libm.so.6 (0x00007f03a5277000)
libc.so.6 => /lib64/libc.so.6 (0x00007f03a4ee2000)
/lib64/ld-linux-x86-64.so.2 (0x00007f03a6133000)
# I reinstalled mod_wsgi-3.4 (without performing any un-installations)[root@server ~]# cd ~
[root@server ~]# wget http://modwsgi.googlecode.com/files/mod_wsgi-3.4.tar.gz
[root@server ~]# tar xvf mod_wsgi-3.4.tar.gz
[root@server ~]# cd mod_wsgi-3.4
# configured mod_wsgi with the installed python2.7
[root@server ~]#./configure --with-python=/usr/local/bin/python2.7
[root@server ~]# make
[root@server ~]# make install# The below two commands are very important. Replace
/usr/local/libwith the folder where you have installedlibpython2.7.so.1.0if it is not in/usr/local/lib.[root@server ~]# LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/python
[root@server ~]# ldconfig
--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.