mod_wsgi is an easy to use Apache module that can host Python web applications which support the Python WSGI interface.

learn more… | top users | synonyms

1
vote
1answer
149 views

Can one rely on Apache sanitizing URLs?

I set up Apache with mod_wsgi in a default installation, with a very simple test application test.wsgi that goes like this: def application(environ, start_response): status = '200 OK' output ...
1
vote
1answer
275 views

“AUTHENTICATE_”environment variables missing in Apache + LDAP authentication

According to the Apache 2.2 documentation, after a successful authentication against Active Directory the LDAP attributes specified in the AuthLDAPUrl directive should be available as environment ...
1
vote
1answer
147 views

Installing and running two versions of mod_wsgi in Apache

I'm trying to setup Python3 and Python2 via mod_wsgi on Ubuntu, so I've installed the mod_wsgi_py3 package but also wish to run the py2 version and have it switched depending on a flag within the ...
2
votes
1answer
2k views

Apache2 mod_wsgi python 2.6 Django very slow

I've tried about 1000x things, but I can't seem to figure out why a simple django website is slow using apache 2.2.14/wsgi latest / django 1.3. I've confirmed the problem isn't our database by turning ...
3
votes
1answer
4k views

Apache2 mod_wsgi django Named Virtual Servers

I'm trying to set up two seperate django sites using mod_wsgi on apache. The first site is working fine, but the second site cupaday.dyndns.biz is giving a 403: [Tue Feb 07 22:32:57 2012] [error] ...
1
vote
0answers
77 views

Server returning response for previous requests

It's a really strange problem. I believe it to be a server issue, but it's so strange and hard to reproduce that I'm not entirely sure. Just as the title says I'm receiving responses for earlier ...
0
votes
1answer
584 views

mod_wsgi won't compile - cannot find -lpython3.2

I am trying to install Python 3.2 and mod_wsgi on my web server, but I am not having much luck. I downloaded the Python source files and compiled using this command: ./configure --enable-shared ...
0
votes
1answer
244 views

Python eggs are not imported for Apache2 mod_wsgi

I'm setting up Apache2 and mod_wsgi for Django in Debian, but I found problems. First, these are my directories: /webapps/lib/python2.6/site-packages # python eggs /webapps/lib/python2.6/ # python ...
0
votes
1answer
264 views

centos,django, mod_wsgi & different python installations

I am getting this error File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module TemplateSyntaxError: Caught ImportError while rendering: No module named ...
1
vote
1answer
503 views

Redirecting through httpd.conf with Django and mod_wsgi

I am trying to use Apache's Rewrite module to redirect users before Django catches the request. I tried the following to redirect a user from "test.php" to the "links" page <VirtualHost ...
3
votes
2answers
310 views

Mod_wsgi daemon process status

Is there a way to get the status of the mod_wsgi daemon processes and threads? Something like apache's server status page. My server's taking a while to respond sometimes and I want to see if it's ...
4
votes
1answer
2k views

Apache, Permission denied on mod_wsgi, fixed with WSGISocketPrefix — But why?

In what seemed to be a random occurrence, a site went down tonight and after taking a look at the Apache error logs it was this issue: (13)Permission denied: mod_wsgi (pid=2751): Unable to connect ...
0
votes
1answer
720 views

Segmentation Fault (11) with modwsgi on CentOS 5.7 when running pyramid app

I'm getting Segmentation fault error when trying to access the "Hello World" pyramid app. This error only occurs when running against CentOS 5.7 setup, but no problem whatsoever when tested against ...
2
votes
1answer
1k views

apache+mod_wsgi configuration for django project(s) on a quad core

I've been experiment quite some time with a "typical" django setting upon nginx+apache2+mod_wsgi+memcached(+postgresql) (reading the doc and some questions on SO and SF, see comments) Since I'm still ...
1
vote
1answer
138 views

How do you implement mod_wsgi on web servers?

All of the documentation I've seen outlines the process for self-managed Apache configuration. I currently have my site hosted through Media Temple. Is it possible to configure WSGI for these types of ...
0
votes
1answer
1k views

WAMP Server not working when I add a directory directive

I am attempting to put WSGI (python) on a WAMP server (Apache 2.2.21, Python 2.7, WAMP 2.2a). Unfortunately, when i add just a simple directory directive and restart, Apache won't start. here is the ...
2
votes
1answer
348 views

Python and mod_wsgi path issue

I have an AIX 6.1 system that I've compiled and installed: Apache 2.2.21 (into /usr/local/mercurial) Python 2.7.2 (into /usr/local/bin and /usr/local/lib) mod_wsgi 3.3 (with the AIX fix #1 described ...
0
votes
2answers
489 views

Apache virtualhost - only apply script if file does not exist in document root

Sorry for the newbie apache question. I'm wondering if it's possible to set up the following non-conventional apache virtualhost (for a Django app): -- If a file exists in the DocumentRoot ...
2
votes
3answers
4k views

WSGI says “permissions denied” on my Ubuntu server, no WSGISocketPrefix setting works

I am trying to run Apache2 with mod_wsgi supporting daemon processes on Ubuntu 10.04.3 LTS (lucid). The problem is, I am not able to find out a working configuration for WSGISocketPrefix directive. ...
1
vote
0answers
130 views

Django - can't get production web server running

I'm trying to deploy a Django app in production, on an apache server, using mod-wsgi. mod-wsgi is installed and working fine. When I run the Django server, it launches fine, but I can't access it on ...
1
vote
1answer
96 views

Set default number of mod_wsgi processes

I have a virtual host setup with the follow config directive. WSGIDaemonProcess myproject processes=2 threads=25 I would like to set the number of processes for each vhost using mod_wsgi to 2 ...
1
vote
1answer
842 views

Apache showing “Python version mismatch” with mod_wsgi

I am trying to get web.py working. I have compiled mod_wsgi to use python2.6, and configured my virtualhost correctly (at least I am pretty sure it is!). The hello, world application keeps showing up ...
1
vote
2answers
794 views

Django and WSGI and Apache2— site is perfect in test server, won't load with Apache

OK I don't what I'm doing wrong here. I have a Linode VPS running Ubuntu. I installed Django 1.3, Apache2, and mod-WSGI. I created my (extermely simple) website, slapped in some images, have a CSS ...
2
votes
1answer
2k views

Fine tuning Django Apache mod_wsgi

First off I am looking for some help setting up my Django and Apache settings to fine tune it for my site for the best performance cost effectiveness. Server info: Django 1.3 Webfacion server, 80mb ...
0
votes
2answers
791 views

mod_wsgi and mod_php running together - possible?

I was wondering is it possible to run apache with mod_wsgi and mod_php running together to serve python and php pages? If so were can I find info on doing this? Thanks
1
vote
2answers
120 views

Apache - mod rewrite with virtual host question

I have Apache 2.0 set up with a virtual host like this: <VirtualHost *:80> ServerName wackystore ServerAlias wackyprojects Alias /media/admin ...
2
votes
1answer
724 views

WSGIDaemonProcess: specifying a user

I have a user account all set up for this Python webapp I'm deploying with mod_wsgi. It's super-unprivileged, and only gets to read from the appdir and write to a separate set of tempdirs which no one ...
0
votes
2answers
60 views

editing hosts file for local (running django and also php sites)

Right now, my http://localhost/ address for all of my php sites (which are in my Sites folder). However, my django sites will be in my /Users/myusername/djcode/www/ folder. How do I see my django ...
0
votes
1answer
253 views

Why are there double apache processes for mod_wsgi?

I am running a Django app using mod_wsgi, and am trying to understand how the apache processes work. Here is my apache httpd.conf: <VirtualHost *:80> ServerName www.example.com ...
0
votes
1answer
356 views

Problem getting mod_wsgi running with apache

Not had any problems implementing this set up before, got a new server set up at home and wanted to work on some django projects. Im using virtualenv with virtualenvwrapper, mod_wsgi module seems to ...
0
votes
1answer
251 views

Run CherryPy script with Python2.6 rather than Python2.4 on RHEL

Working on a RHEL 5 server. Trying to make a small CherryPy app that takes in arguments from the url (ex. internet.com/cherrypy/data/22/45 would return 22 and 45) and then use that to query a SQL ...
0
votes
1answer
238 views

mod_wsgi/3.2 mixing interpreters context with django on Apache2 using mod_rewrite .. why?

Long story tl;dr: With the configuration below Apache gets confused with Python interpreter context. I have three demo sites deployed using this setup and if you refresh them often a race condition ...
2
votes
1answer
3k views

mod_wsgi daemon mode - WSGIDaemonProcess per virtual host configuration?

I had a fairly simple question. When mod_wsgi is run in Daemon mode, and you enable the WSGIDaemonProcess and WSGIProcessGroup directives on a per virtual host basis, are these picked up by other ...
0
votes
1answer
285 views

mod_wsgi + Apache 2 — not able to access wsgi file

I have installed libapache2-mod-wsgi-py3 from the synaptic package manager ( Ubuntu 11.04) and because I had used package manager, it automatically kept the wsgi.load and wsgi.conf files at the right ...
2
votes
4answers
3k views

Setting environment variables in mod_wsgi for Django

I'm running Django on an RHEL instance under Apache/mod_wsgi, and I'm having issues setting some environment variables for the Python process. All of the components (Apache, Python, mod_wsgi, ...
3
votes
2answers
1k views

Debian Lenny, Python 2.7 and mod_wsgi

I am running a Debian Lenny box, which comes with Python 2.5.2. I would like to run Python 2.7 for my WSGI apps only, keeping 2.5 as default for the system, but I cannot get it to work. First, I ...
1
vote
1answer
897 views

Centos 5 Apache 2.2 configure with mod_wsgi (missing apxs folder)

I have got a dedicated server and CENTOS 5,webmin and Apache 2.2 is already installed. They installed Apache at /usr/libexec/webmin/apache/ and it works great right now. I can restart and configure ...
1
vote
2answers
941 views

django + wsgi + suexec + userdir + apache?

I've got a django 1.1 website I want to run in wsgi (as that seems to be the recommended deployment on apache). I want it to run as the www user (apache is running as www-data). I would ideally like ...
0
votes
1answer
465 views

Apache, Django with mod_wsgi, and large request buffering

In my setup of Apache 2.2 MPM worker and Django 1.3 with mod_wsgi 2.8, I need to support large POST request payloads. The problem is that when there are many such simultaneous requests, Apache uses up ...
4
votes
1answer
8k views

Python/Django/WSGI/Apache - “ImportError: No module named site”

I am trying to use a django application on my local ubuntu machine. However the site doesn't work and my /var/log/apache2/errors.log is filled with messages like this: ImportError: No module named ...
1
vote
2answers
128 views

Django's unpredictable behaviour

I've been trying to make a simple app in Django for a while now and I noticed the following behaviours: Everytime I make changes to urls.py in my project folder, changes are not reflected until I ...
2
votes
2answers
2k views

Make mod_wsgi use python2.7.2 instead of python2.6?

i am running Ubuntu 10.04.1 LTS and it came pre-packed with python2.6 but i need to replace it with python2.7.2. (The reason is simple, 2.7 has a lot of features backported from 3 ) i had ...
0
votes
2answers
68 views

Installing mod_wsgi in addition to PHP

I would like to use some python scripts with my PHP-based application. I don't want to install Django; just mod_wsgi, so Apache can execute my python scripts as well as the rest of my PHP site. How do ...
2
votes
2answers
6k views

How to make apache to run python scripts using MOD_WSGI or MOD_PYTHON in RHEL6?

I am trying to make the apache to run python scripts. I have MOD_WSGI , Apache , Python installed on RHEL6. I even edited httpd.conf file to include these lines. <Directory /var/www/> ...
1
vote
1answer
854 views

Enabling mod_wsgi with SELinux (Is there a way?)

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 ...
1
vote
1answer
280 views

Apache fails to work/hangs when including mod_wsgi.so

I am running Centos 5 on 64 with apache 2.2. When I include wsgi_module apache restarts ok with no errors, but it fails to serve any requests. It just says waiting in the browser when I access an ...
0
votes
1answer
176 views

Centos 5.2 x86_64 install mod_wsgi.so error undefined symbol: ap_close_listeners

I am trying to install mod_wsgi.so on my VPS runninr Centors 5.21. I installed python 2.6 and compiled mod_wsgi. It all worked with ought an error. When i include the mod_wsgi.so in Apache i get the ...
0
votes
2answers
717 views

Apache + mod_wsgi: seem to be getting a 403 server error

Hello I had to recently reinstall mod_wsgi today (As our Red Hat server was curupted again). Something funny happed while deployiing with Django. I kept on getting page 403 errors You do not have ...
1
vote
0answers
114 views

Shell Script to deploy Django

I have yet to find an Amazon Web Services AMI that deploys a Django environment. I want to deploy with mod_wsgi and also include modules like markdown, lxml, beautiful soup, PIL, and others. Is ...
4
votes
1answer
2k views

Error installing mod_wsgi in centos with python2.7

When i do "make" in mod_wsgi folder i get this error I configured using following ./configure --with-apxs=/usr/local/apache/bin/apxs --with-python=/opt/python27/bin/python /usr/bin/ld: ...