On 06/16/2015 12:19 PM, Chris Warrick wrote: > On Tue, Jun 16, 2015 at 8:14 PM, Néstor Boscán <nesto...@gmail.com> wrote: >> I tried that but it didn't work. >> >> I had to change /etc/selinux/config and reboot to make it work. It would be >> nice if the wsgi module generated some log that explains why you get the >> 403. There are several posibilities. > > Well, that’s not wsgi’s fault. There was a “permission denied” error, > that’s everything wsgi ever knew. > As a RHEL sysadmin, you should know that this is most likely caused by > braindead syslinux and to read the audit log.
The officially-blessed software collections has a version of python2.7 that should work fine with selinux, and it comes with a mod_wsgi module that will plug it into the stock apache. https://www.softwarecollections.org/en/scls/rhscl/python27/ https://rhn.redhat.com/errata/RHBA-2014-0610.html I think the package is called python27-mod_wsgi -- https://mail.python.org/mailman/listinfo/python-list