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
274 views

Python with mamp

I have a MAMP 1.9 install on Lion and would like to start using python with it. Mainly to learn and develop django sites. I am very new to python in general. In my research I found that I either need ...
1
vote
2answers
272 views

How may I know the amount of memory used by each one of my apache sites?

When I run ps aux I get the following process table http://pastebin.com/NJsASBek that shows how much memory is being used by each one of the subprocess. We can see apache proceess are shown like this: ...
2
votes
1answer
372 views

Find site of apache from linux process table

I am using Ubuntu server and when I run ps aux I get the following process table http://pastebin.com/NJsASBek as we can see apache proceess are shown like this: www-data 26487 0.0 0.9 245476 14920 ...
0
votes
1answer
600 views

Installing Mod-wsgi 3.3 for apache 2.2 and python 3.2

I am attempting to install Mod-wsgi 3.3 on an ubuntu 11.10 desktop edition with apache 2.2 and python 3.2 I downloaded the source tarball and extracted it. I configured it using the ...
1
vote
1answer
547 views

Django error saying “could not connect to server: Permission denied”

I am getting an error trying to visit my Django app. I am running Gentoo and the web server is Apache with the mod_wsgi module to display Django. The error says OperationalError at /admin/ could not ...
1
vote
1answer
1k views

Enabling mod_wsgi in Apache for a Django app on Gentoo

I installed Apache, Django, and mod_wsgi on Gentoo using emerge (on Amazon EC2). I know that the mod_wsgi is configured in /etc/apache2/modules.d/70_mod_wsgi.conf: <IfDefine WSGI> LoadModule ...
0
votes
1answer
451 views

mod_wsgi overriding virtual hosts on Apache?

I have a working Django app hosted on my linode (Fedora 15), and I'm attempting to host a php-based site there as well. I'm using name-based virtual hosts to redirect requests based on the host name, ...
0
votes
3answers
856 views

Debian 5 Lenny how to upgrade Python to 2.7 version to run Django app?

I'm configuring Debian 5 to run my Django app. The required application is required incompatible with Python 2.5 packages. I installed Python 2.7 and created the symlink python -> ...
0
votes
1answer
417 views

Django + Apache + mod_wsgi problems

I have spent the last 2 days attempting to deploy a Django application I've built and tested using the development server built into manage.py. I've read countless tutorials and snippets, and cannot ...
1
vote
1answer
162 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
300 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
174 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
3k 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
80 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
634 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
276 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
267 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
599 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
338 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
3k 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
810 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
2k 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
143 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
364 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
515 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
5k 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
139 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
97 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
937 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
879 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
836 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
950 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
62 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
259 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
379 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
256 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
248 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
299 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
982 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
1k 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
491 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
10k 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
135 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 ...