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

  • Home
  • SEARCH
  • 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 9044771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:04:27+00:00 2026-06-16T11:04:27+00:00

I’ve got a problem with getting python WSGI module for Apache on a Debian

  • 0

I’ve got a problem with getting python WSGI module for Apache on a Debian box up and running, or it could be just me having a hard time proving that it running.

The system is Debian 6.0.6 running python 2.6.6 and Apache 2.2.16 with the mod_python and mod_wsgi enabled; all is a default install without any crazy configurations that I’m aware of as of yet.

What I’m trying to do is have a directory in /var/www/pythontest were a few developers can drop some simple python code and have it executed and display the results in a browser.
(specific reason for this and not just starting with installing Django is that the boss demands it be done this way first, and then I can install Django. go fig.)

I’ve been trying to follow the Configuration Guide at http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide to confirm that everything is working.

The VirtualHost that is setup is

>    < VirtualHost ###.##.###.##:80> <br>
>    ServerName test.yyy.com <br>
>
>    LogLevel info  <br>
>    ErrorLog /var/log/apache2/error.test.log <br>
>    CustomLog /var/log/apache2/access.test.log combined <br>
>
>    DocumentRoot /var/www <br>
>
>    WSGIDaemonProcess yyy.com processes=2 threads=15 display-name=%{GROUP} <br>
>    WSGIProcessGroup yyy.com <br>
>    WSGIScriptAlias /pythontest  /var/www/pythontest/test1.wsgi <br>
>
>    < Directory /var/www/pythontest > <br>
>    Order allow,deny <br>
>    Allow from all <br>
>    < /Directory> <br>
>    < /VirtualHost>

and within the pythontest directory is a test1 script from the above listed Configuration Guide.

At this time everything looked to have installed ok without any errors being spat out.
I’ve been able to read any file/script that I put in the directory, all with 755 permissions. But NONE have executed and displayed the results in the browser.

The error log only contained for the above configuration
[Fri Dec 28 10:46:21 2012] [info] mod_wsgi (pid=6554): Attach interpreter ”.

At this time all I’m trying to do is get one python wsgi application to run successfully to prove everything is working before making any changes and letting the programmers loose.

I may just be tired and missing the obvious, but any suggestions on what could be the problem and going about proving and resolving it?

Thank you,

Timothy.

  • 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-16T11:04:28+00:00Added an answer on June 16, 2026 at 11:04 am

    What URL are you using? The only one which will work with that configuration is /pythontest and it would always execute /var/www/pythontest/test1.wsgi.

    If you can access the raw code of any scripts under /pythontest directory of DocumentRoot suggests that VirtualHost isn’t even being used.

    Possible reasons are that the VirtualHost isn’t even enabled and being included by Apache, or it could be because you are using an IP in the VirtualHost name when possibly shouldn’t be.

    A stuff up on either means it will fall back to default VirtualHost and since you are possibly using same DocumentRoot the default VirtualHost will serve them up as static files.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am currently running into a problem where an element is coming back from
I have just tried to save a simple *.rtf file with some websites and
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
This could be a duplicate question, but I have no idea what search terms
I've tracked down a weird MySQL problem to the two different ways I was
i got an object with contents of html markup in it, for example: string

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.