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 8266585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:12:51+00:00 2026-06-08T05:12:51+00:00

I downloaded mod_wsgi from the following location for apache 2.2 and python 2.7 (64bit).

  • 0

I downloaded mod_wsgi from the following location for apache 2.2 and python 2.7 (64bit). (I’m trying to get django to run on my computer).

Whenever I add the following line:

LoadModule wsgi_module modules/mod_wsgi.so

Apache fails to start up. Can anyone tell me what the issue might be?

  • 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-08T05:12:52+00:00Added an answer on June 8, 2026 at 5:12 am

    These are the following things you need to do to setup Apache for Django. I assume you are using Python 2.7 (32-bit) on Windows (32-bit) with WAMP server (32-bits) installed.

    1. Download mod_wsgi-win32-ap22py27-3.3.so. Or download your respective .so compatible file

    2. Change its name to mod_wsgi.so and copy it to /Program Files/Apache Software Foundation/Apache22/modules on Windows.

    3. Open httpd.conf using Admin rights. Now, you will find a list of lines with LoadModule .... Just add LoadModule wsgi_module modules/mod_wsgi.so to that list.

      Your are partially done.. you can restart the apache and shouldn’t find any errors.

    4. Now you need to link it to your Django project.

    5. In your Django project root folder, add apache folder and create django.wsgi (don’t change this name) and apache_mydjango.conf.

    6. In httpd.conf add the following line at the bottom of the page.

      Include "d:/projects/mysite/apache_django_wsgi.conf"

    Open django.wsgi and add the following lines:

    import os, sys
    
    sys.path.append('d:/projects/mysite')
    os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
    
    import django.core.handlers.wsgi
    application = django.core.handlers.wsgi.WSGIHandler()
    

    Open apache_djang_wsgi.conf and add:

    Alias /images/ "d:/projects/mysite/templates/images/"
    <Directory "d:/projects/mysite/images>
    Order allow,deny
    Allow from all
    </Directory>
    
    WSGIScriptAlias / "d:/projects/mysite/apache/django.wsgi"
    
    <Directory "d:/projects/mysite/apache">
    Allow from all
    </Directory>
    
    <VirtualHost *:80>
        DocumentRoot d:/projects/mysite
        ServerName 127.0.0.1
    
    </VirtualHost>
    

    Note:

    I am assuming your Django project hierarchy is something like this:

    mysite/
            mysite/
                     settings.py
                     urls.py, wsgi.py.
            manage.py
            <apache> / apache_django_wsgi.conf, django.wsgi
    

    Best tutorial links:

    1. port25.technet.com | Published my microsoft.
    2. mod_wsgi Quick Install guide
    3. Django site
    4. Django site

    Actually I don’t understand why people are unable to fix it. I’ve seen lots of questions on it here and I even posted few…So, I thought to write a initial setup version directly as answer

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

Sidebar

Related Questions

I've been trying to get MOD_WSGI working on Apache via XAMPP on my Mac
WHEN I WAS INSTALLING WSGI MODULE FOR APACHE I downloaded the module from http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-win32-ap22py27-3.3.so
I downloaded a project from TouchMyPixel and when I try to run it with
I recently downloaded python 2.7 on my computer (x64) and I would like to
I downloaded the latest source of mod_wsgi from https://code.google.com/p/modwsgi/source/checkout , but I can’t compile
Downloaded Reachability from Apple, using this method to check for an active connection: -(BOOL)isReachable{
I downloaded and edited a code that from internet, basically what I want to
I downloaded Mono software (http://xamarin.com/monoforandroid) and the samples from the xamarin website (http://samples.xamarin.com/Android). When
I'm trying to setup a mod_ssl - Apache server for authentication purpose. I just
How do I install mod_python to run with Python 2.6 on a Windows machine?

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.