![]() ![]() I would recommend you use that installation and not install the base CentOS httpd package. Note that will bring in the SCL package httpd24-httpd and put the mod_wsgi file in that installation. Yum install rh-python36 rh-python36-mod_wsgi I would use the SCL packages for python 3.6 (though feel free to substitute 3.5 below). Now I have the right version of mod_wsgi, and my Django app will run under Apache. Sudo cp /opt/rh/httpd24/root/etc/httpd//nf /etc/httpd/ sudo cp /opt/rh/httpd24/root/usr/lib64/httpd/modules/mod_rh-python36-wsgi.so /lib64/httpd/modules With some hints from the README.rst file, I copied them into the right place. ![]() It installed the files I need, but it didn't put them anywhere useful. opt/rh/httpd24/root/usr/lib64/httpd/modules/mod_rh-python36-wsgi.so So what did get installed? $ rpm -ql rh-python36-mod_wsgi When I looked in Apache's modules folder, nothing had changed. $ sudo yum install -q -y rh-python36-mod_wsgi I'm using Python 3.6, so I installed the matching version and restarted Apache. Viewvc-httpd-wsgi.noarch : ViewVC configuration for Apache/mod_wsgi Rh-python36-mod_wsgi.x86_64 : A WSGI interface for Python web applications in Apache Rh-python35-mod_wsgi.x86_64 : A WSGI interface for Python web applications in Apache Rh-python34-mod_wsgi.x86_64 : A WSGI interface for Python web applications in Apache Python33-mod_wsgi.x86_64 : A WSGI interface for Python web applications in Apache ![]() Python27-mod_wsgi.x86_64 : A WSGI interface for Python web applications in Apache Mod_wsgi.x86_64 : A WSGI interface for Python web applications in Apache Koschei-frontend.noarch : Web frontend for koschei using mod_wsgi $ sudo yum install -q -y centos-release-scl Then I installed the SCL repository, and looked to see which versions of mod_wsgi are available. I looked at Apache's modules folder before I installed the mod_wsgi upgrade: $ ls -l /lib64/httpd/modules It turns out that the version I installed required some extra configuration steps after installation. I tried following Carl's answer, but it didn't solve the problem. The Software Collection Special Interest Group.The Software Collection (SCL) Repository.Have you check the rh-python35 Software Collection which provides a rh-python35-mod_wsgi package ? ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |