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

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
343 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
453 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
124 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
777 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
713 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
1k 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
754 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
626 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
252 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
345 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
242 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
236 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
267 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
818 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
890 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
452 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 ...
3
votes
1answer
6k 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
125 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
766 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
269 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
172 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
631 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 ...
3
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: ...
0
votes
1answer
1k views

Cant make mod_wsgi-3.3 on centos, is there a python2.7-dev(el) package?

I'm trying to get mod_wsgi to work om my CentOs server so I can run Django sites on apache. I've installed python2.7 paralel to 2.4 (because you have to keep 2.4 in order to keep yum happy), the root ...
0
votes
2answers
2k views

504 gateway timeout on nginx + apache + mod_wsgi

I'm running a django app with mod_wsgi and proxying with nginx. One of my views takes 2+ minutes to complete. When I visit it, I get a 504 gateway timeout. Is there a setting I can change to ...
0
votes
1answer
395 views

Deploying a Django site using apache2 and mod_wsgi

I've been trying to teach myself to create and deploy Django apps. I've created a test project and I can browse it using the Django test server. Now I want to deploy it using apache and mod_wsgi. I ...
0
votes
1answer
200 views

Enable mod_rewrite Apache

When I try to turn the RewriteEngine on, it tells me that mod_rewrite is not installed. I've looked in my apache2.conf file and there is not line to uncomment that resembles LoadModule ...
2
votes
2answers
1k views

Deploying Django with mod_wsgi

/etc/apache2/site-available/mysite.com <VirtualHost my_ip_here:80> ServerAdmin foo@mysite.com ServerName mysite.com ServerAlias www.mysite.com WSGIScriptAlias / ...
0
votes
2answers
992 views

Error Installing mod_wsgi on RedHat

I'm trying to install mod_wsgi on RedHat Linux. And I'm getting this error: apxs:Error: Command failed with rc=65536 The answer seems to be here, but I think I already have 64 bit Python so I'm ...
2
votes
1answer
242 views

speeding up django server

My setup is django 1.3 and the default mod_wsgi and apache packages for ubuntu 10.04. I tested one view of my app on my development VM (DEBUG and debugging toolbar off): ab -n 200 -c 5 ...
0
votes
3answers
2k views

Apache mod_wsgi error: ImportError: No module named django.core.handlers.wsgi

I am using Python 2.7 with mod_python 3.3.1 and mod_wsgi 3.3. I get an Internal Server Error and this stack trace in the apache logs: [Thu Apr 21 10:25:37 2011] [error] [client 83.244.243.242] ...
1
vote
1answer
261 views

Trac problem: AttributeError: Cannot find an implementation of the “IRequestHandler” interface named “WikiModule”

This problem already has been described mutliple times in different mailing lists, but no solution has yet been published. My original setup is as follows (but in the mean time i have a simpler one ...
0
votes
2answers
463 views

Apache2 not loading wsgi script

I am setting up CKAN, a pylons application according to these instructions: http://packages.python.org/ckan/deployment.html But when I point to the server (no DNS setup yet) using IP or hostname, I ...
1
vote
3answers
738 views

Why, when everything is working properly, an apache restart writes into error.log?

This is just a minor nitpic, but I wonder if anyone can tell me the reason - when I restart apache, these lines get written into /var/log/apache2/error.log [Thu Mar 24 10:20:56 2011] [warn] mod_wsgi: ...
0
votes
1answer
2k views

503 Error: Service Temporarily Unavailable (Mod_wsgi, Apache, Django)

I followed the tutorial to mount a Djando application on Apache here. The Django project was created under its own directory in /opt. Any suggestions or other tutorials I can use? I reviewed few ...
0
votes
1answer
738 views

Can't get URLs to work on Django Apache EC2

This is my first time trying to setup a webserver with Django. I've been banging my head against the wall in trying to set this up for a while now and I can't seem to find any resources that explains ...
1
vote
1answer
248 views

Problem deploying Django site with mod_wsgi

I'm trying to set up an apache + mod_wsgi environment for a Django site on Linux Mint. I followed the django site tutorial for this, and mod_wsgi site too. So far I got this: on my httpd.conf I have ...
1
vote
1answer
1k views

Uploading file > 1 MB on Django admin gives 400 Bad Request response

I have a small Django (1.2.x) project deployed on Apache (2.x) via mod_wsgi (3.x). In the admin, if I upload a file < 1MB, I can get it through; however, for a file, say, 1.2MB in size, I get a 400 ...