Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8625883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:53:09+00:00 2026-06-12T07:53:09+00:00

Ive wasted about 3 days trying to get apache working with django and getting

  • 0

Ive wasted about 3 days trying to get apache working with django and getting very frustrated.
Ive read

https://docs.djangoproject.com/en/1.4/howto/deployment/wsgi/modwsgi/

http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango

The configuration differs between the links and I suspect they are a bit outdated now with django 1.4
The error im facing in the apache log is

(13)Permission denied: access to / denied

Environment:

Python 2.62

Centos 6.2 on Windows Azure

Apache/2.2.15

Django 1.4

Paths:

/home/craig/django/myproject/myproject/wsgi.py

Permissions:

/home/ : drwxrwxr-x

/home/craig/ : drwxrwxr-x

/home/craig/django/ : drwxrwxr-x

/home/craig/django/myproject/ : drwxrwxr-x

/home/craig/django/myproject/myproject/ : drwxrwxr-x

/home/craig/django/myproject/myproject/wsgi.py: -rw-r–r–

Http.conf:

DocumentRoot "/var/www/html"

<Directory /> 
Options FollowSymLinks
AllowOverride All
</Directory>

<Directory /home/craig/django/myproject/myproject>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>

WSGIScriptAlias / /home/craig/django/myproject/myproject/wsgi.py
WSGIPythonPath /home/craig/django/myproject

<VirtualHost *:80>
ServerName myserver.domain.net
</VirtualHost>

wsgi.py

import os

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:53:10+00:00Added an answer on June 12, 2026 at 7:53 am

    This problem was immediately fixed by disabling SELINUX by running the following command:
    setenforce 0

    This probably isnt best pratice, but for development purposes it did the job for me

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've read about Single-Page Applications recently and wanted to try one out. After watching
I've just wasted a day trying to find the answer on my own. I
I just started playing with Berkeley DB a few days ago so I'm trying
Ive been working with the iOS sensors a bit off late and i wanted
Okay so ive been reading up on and working with SQLite recently (someone on
I have a website that i've been working on for about a year now.
I have a question about Sql database in android.Now Ive done the all Notepad
I've just wasted the past two hours of my life trying to create a
I am mapping out a very small database and have some design questions about
I've gone through a lot of client/server tutorials.. But I wanted to learn about

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.