Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently had a bit of problem when recently by Deploying Django with mod_wsgi due to SELinux. Usually world get a "Permission denied" error (403). This was solved by disabling SELinux.

Is there a way to use mod_wsgi while SELinux is enabled? Now if I was to move my djcode folder to /usr/local/ this would work, but if the djcode folder is stored /usr/local/src/djcode, it will give me again this error.

Cannot load /etc/httpd/modules/ into server: /etc/httpd/modules/ cannot restore segment prot after reloc: Permission denied

I have looked at some logs and it says this:

SElinux is preventing the httpd from using potentially mislabel files ./src (src_1)

So how would I allow the httpd use the src folder?

share|improve this question

Someone wrote a guide to using SELinux with python web app's (w/ wsgi) here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.