Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92770

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

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <torriem+gmail@torriefamily.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; '16,': 0.03; 'subject:Python': 0.05; 'skip:/ 10': 0.07; 'collections': 0.09; 'plug': 0.09; 'subject:2.7': 0.09; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'log.': 0.16; 'reboot': 0.16; 'subject: \n ': 0.16; 'subject:Apache': 0.16; 'subject:Hat': 0.16; 'subject:configure': 0.16; 'url:redhat': 0.16; 'wsgi': 0.16; 'wrote:': 0.16; '2015': 0.23; 'module': 0.23; 'tried': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'chris': 0.26; 'fine': 0.29; 'python2.7': 0.29; 'work.': 0.30; 'message-id:@gmail.com': 0.35; 'to:addr:python-list': 0.35; 'but': 0.36; 'url:org': 0.36; 'there': 0.36; 'stock': 0.36; 'should': 0.37; "didn't": 0.37; 'subject:: ': 0.37; 'tue,': 0.38; 'version': 0.38; 'received:org': 0.38; 'pm,': 0.39; 'url:en': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'called': 0.40; 'why': 0.40; 'some': 0.40; 'caused': 0.61; 'skip:\xe2 10': 0.70; 'subject:get': 0.81; 'subject:Red': 0.84; 'audit': 0.93
X-Virus-Scanned amavisd-new at torriefamily.org
Date Wed, 17 Jun 2015 11:00:57 -0600
From Michael Torrie <torriem@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version 1.0
To python-list@python.org
Subject Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden
References <CALyLaQKsLBh7DvqaDRaLnceAE_zRBB2p0Yg+Vm8YXukQ=x98OA@mail.gmail.com> <CABD09x9JQrb0dUXf7JNbqJT7OsDDgM6mftU9PcBU8YFP4PXdvQ@mail.gmail.com> <mailman.499.1434425540.13271.python-list@python.org> <557feaf7$0$1655$c3e8da3$5496439d@news.astraweb.com> <CALyLaQK5=HQcuHkTm9QHcs5p05NXvJ7j-wpi9GffqDrcA14GVg@mail.gmail.com> <CAMw+j7Lhpt8hs8uZ3CFFNyyntg_RPEqrN82cPG2bfCvU_0rTRw@mail.gmail.com> <CALyLaQJfL8iaxmPgj+WFj6WaV19xJwBoCWOeS2W-kw3NjRisWg@mail.gmail.com> <CAMw+j7JXD7H29XJUyW_W18gPNZSPfYXBbTz3BZ7XSLPxPGqwnw@mail.gmail.com>
In-Reply-To <CAMw+j7JXD7H29XJUyW_W18gPNZSPfYXBbTz3BZ7XSLPxPGqwnw@mail.gmail.com>
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.560.1434560462.13271.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1434560462 news.xs4all.nl 2923 [2001:888:2000:d::a6]:54602
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:92770

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-06-16 19:23 +1000
  Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden Chris Warrick <kwpolska@gmail.com> - 2015-06-16 20:10 +0200
  Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden Chris Warrick <kwpolska@gmail.com> - 2015-06-16 20:19 +0200
  Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden Chris Angelico <rosuav@gmail.com> - 2015-06-17 09:58 +1000
  Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden Michael Torrie <torriem@gmail.com> - 2015-06-17 11:00 -0600

csiph-web