Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

Michael Torrie torriem at gmail.com
Wed Jun 17 13:00:57 EDT 2015


On 06/16/2015 12:19 PM, Chris Warrick wrote:
> On Tue, Jun 16, 2015 at 8:14 PM, Néstor Boscán <nestorjb at 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





More information about the Python-list mailing list