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

URLs redirection problems deploying a working django app in apache (via mod_wsgi)

I've a django app that works perfectly under the django development server. I'm trying to deploying it in apache2.2 using the mod_wsgi and I have errors. In the httpd.conf file I "mounted" my app ...
2
votes
3answers
2k views

Where is the environment variable?

I have an apache2 server with active mod-wsgi, but I can't get the environment variable PYTHON_EGG_CACHE. Here the important lines out of my virtualhost.conf: DAV svn SVNParentPath /var/svn ...
0
votes
1answer
865 views

Apache, mod_wsgi, Django - strange 500 errors

I have a Django site which works well most of the time, memory usage is stable and I wouldn't have to worry if not some strange problems, which were occasional until yesterday and cause site to go ...
0
votes
1answer
1k views

Unable to install mod_wsgi on CentOS 5.5 VPS

I am trying to install mod_wsgi on my VPS, but it won't work. This is what I am doing: wget http://modwsgi.googlecode.com/files/mod_wsgi-2.5.tar.gz tar xzvf mod_wsgi-2.5.tar.gz cd mod_wsgi-2.5 ...
1
vote
2answers
383 views

mercurial updated, mod_wsgi runs old version

I have a VPS with Centos 5.5, installed Python 2.6 following Setup Python 2.5, mod_wsgi, and Django 1.0 on CentOS 5 (cPanel) tutorial and Mercurial 1.6 via easy-install. Now I wanted to update to ...
0
votes
1answer
566 views

wsgi, xampp and windows

Im trying to setup wsgi on xampp in order to run python web applications. Ive downloaded the appropriate binary from here and ive installed the module as described. As im running xampp, my module is ...
1
vote
1answer
365 views

Serving arbitrary subdomains using apache2, mod_wsgi and django

I'm attempting to setup a django development server using a sandbox approach. The specific technologies in place are apache2, mod_wsgi and django. I'd like to use subdomains formatted as: ...
1
vote
1answer
698 views

Apache crashes a few seconds after the start

i've got a problem with apache. When i try to start it (/etc/init.d/apache2 start) it dies after a few seconds. It shows up on "ps aux" consuming a lot of memory and then dies. I don't know what could ...
1
vote
2answers
1k views

Django Apache WSGI - very slow production server

I'm scratching my head on this one. Django is installed on my production and dev servers but the live server under not ver heavy load is running extremely slow. Every page is taking more than 30 ...
1
vote
1answer
363 views

mod_wsgi, apache2, and load average

I've got a server running several cherrypy apps on apache2 under mod_wsgi. We're seeing constantly fluctuating load average on a box that is not serving many requests. As far as I can tell, the box is ...
0
votes
1answer
112 views

Django WSGI segfaults when importing setproctitle module

I want to use the python setproctitle module to update the process name of a python WSGI worker process when it starts working on a request. (This is to try to track down what URLs are using all the ...
1
vote
2answers
691 views

What's the most effecient hosting solution for running multiple Pyramid (Python) websites?

In the past, I've written websites in two languages. PHP for smaller sites and Python for larger sites. With this setup, I would run multiple Paster instances to serve each site on a different port ...
0
votes
1answer
193 views

apache/python/mod_wsgi - See what python code a mod_wsgi child process is running?

I'm using Debian, Apache and mod_wsgi to run a Django application. One of the apache child processes is using lots of CPU. I need to find out what's causing it. Is there anyway to see, given a apache ...
0
votes
1answer
574 views

Why is Apache with mod_wsgi + mod_php causing segmentation fault?

I'm using Macports on OS X 10.6 to manage Apache, PHP, and Python. I've never had any problems and the setup works great. However, when I add mod_wsgi to the mix Apache immediately crashes with a ...
2
votes
1answer
2k views

How to configure ReviewBoard with mod_wsgi and Apache in non-root location

I'm trying to configure ReviewBoard on a Mac running OS X Leopard (10.5.8) with Python 2.5 and mod_wsgi 3.3 installed. I'm using sqlite and the standard Apache 2 that comes with OS X; the document ...
0
votes
2answers
1k views

Apache mod_wsgi error

I have followed this guide to setup django on a cpanel server (CentOS 5.2) http://toic.org/2010/08/14/django-on-cpanel-with-python2-6-virtualenv-and-mod_wsgi/comment-page-1/#comment-680 I get a 500 ...
0
votes
1answer
209 views

AIX Missing Symbols ap_cleanup_scoreboard and ap_accept_lock_mech for Apache Process. However, the symbols do exist

I am having a problem whereby apache is not able to find certain symbols referenced from a library (mod_wsgi) loaded within the apache process. When i start the apache process, i get this error. ...
0
votes
2answers
943 views

Serving static files fails - nginx

I've been looking and trying around all night, but without success. I configured nginx to serve my static files and proxy all the other traffic: server { listen 80; server_name example.com; ...
0
votes
1answer
418 views

Host multiple apps with Django, mod_wsgi

I want to host two web apps using a same Apache server, and with IP address in the URL. Two apps are differentiated by their URLs. For example, 203.1.1.1/app1/ and 203.1.1.1/app2/ I'm using mod_wsgi ...
2
votes
1answer
480 views

Django Deploy Reccomendations

I have a Web application provided in SaaS way... (each client has his own sub-domain and his own database). My app uses Django Python and Postgresql. Right now is hosted on a linux shared hosting ...
0
votes
2answers
1k views

How to serve dynamic pages outside the document root?

I'm trying to setup a simple web app and I'm having some difficulties. Here's how I have it setup : /srv/www/application <-- python code /srv/www/public_html <-- document root I want Apache ...
1
vote
1answer
446 views

Mod_WSGI 6X Slower Than Django Development Server

I've been trying to figure why my Django Development Server is running 6-10x faster than mod_wsgi (which is supposed to be faster). I believe it must be restarting the Django process between requests, ...
0
votes
2answers
1k views

Deploying Django in CentOS - Internal Server Error 500

My system: CentOS: 5.5 x86_64 GNU/Linux Apache/2.2.16 mod_wsgi-3.2-1.el5.x86_64 python 2.6.6 django 1.2.3 My file example.wsgi: #!/usr/local/bin/python import os, site, sys # add the virtual ...
1
vote
2answers
249 views

wsgi - narrow user permissions

I have following Apache configuration and my application is working fine: <VirtualHost *:80> ServerName ig-test.example.com WSGIScriptAlias / /home/ig-test/src/repository/django.wsgi ...
8
votes
1answer
2k views

High CPU load on Django/Apache/mod_wsgi site

Load testing a django 1.21/Apache/mod_wsgi configuration on an AWS small instance (Ubuntu 10.04) with Apache bench is showing extremely high CPU load (using uptime and vmstat) at low concurrent ...
2
votes
2answers
927 views

One of my apache processes is huge - how can I find out why?

I'm running Apache 2.2.12 with mod_wsgi, hosting a Django site. Most of the apache child processes weigh in at about 125MB RSS, but occasionally I see one child balloon to > 1GB RSS. At this point ...
0
votes
1answer
564 views

Preventing Django app from causing Linux box to run out memory

One of my Linux web servers recently ran out of memory, hung itself in an OOM kill frenzy, and had to be rebooted. This is a 512 MB VPS, but it has been running without problems since it was set up ...
1
vote
1answer
430 views

Trac causes RuntimeError: instance.__dict__ not accessible in restricted mode

I have the below Apache configuration. The following services are on each port: 8022 - Apache. Testing port, in the long run it will be port 80. 8002 - XDV, a themeing proxy which sits in ...
1
vote
2answers
1k views

Windows + Django + mod_wsgi = “DLL load failed”

For a long time I was using Python 2.5 to do all this fine but recently upgraded to 2.7 since building stuff for 2.5 is a real pain. I also updated mod_wsgi to 3.3 for Python 2.7. Everything is ...
0
votes
1answer
356 views

Django, modwsgi and apache virtualhosts

I have gotten virtual hosts to work, but somehow this setup of mine is behaving strangely. NameVirtualHost * <VirtualHost *> ServerAdmin webmaster@localhost ServerName x.com ...
0
votes
1answer
3k views

Directory, Proxy and Location - how to co-exist in one Apache configuration?

Mostly through trail and error I have created the Apache configuration file below. It aims to allow a server on localhost:8002 and a trac wsgi server to share an ldap server and appear on the same ...
0
votes
1answer
93 views

mod_wsgi with dynamically allocated UIDs

I have a system where users upload wsgi applications and we serve them using apache/mod_wsgi. For scaling reasons, we're simply using the WSGIDaemonProcess directive and setting them to dynamically ...
0
votes
1answer
560 views

mod_wsgi + cherrypy = 404 - The path '/index.wsgi/' was not found

The .htaccess : AddHandler wsgi-script .wsgi RewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /index.wsgi/$1 [QSA,L,PT] The ...
0
votes
1answer
659 views

Limit a form post size with Apache / Django - additional question

There is already an answered question on this topic: http://serverfault.com/questions/76535/limit-a-form-post-size-with-apache-django but I'm not sure what this means: "If, for example, you are ...
0
votes
1answer
1k views

mod_wsgi memory leak?

I've got a django app running through mod_wsgi on Apache 2 (Worker) behind an Nginx reverse proxy (also serving static content). When the app starts to get a bunch of hits concurrently, memory usage ...
0
votes
2answers
342 views

How to debug a broken site config on Apache2

I am currently trying to run a simple BottlePY site on Apache2 but am getting an Internal Server Error. Here is the config file for the site <VirtualHost *:80> ServerAdmin ...
0
votes
1answer
2k views

Run Mod_Python with Mod_WSGI on Apache for Django — Segmentation fault (11)

Okay, so I have to use an existing server to run my Django web app on. The server is running Mac OS 10.6 Server. It comes with Python 2.3, 2.5, and 2.6 pre-installed. I have edited my http.conf file ...
3
votes
1answer
492 views

Deploying a Django application in a virtual Ubuntu Server

I have a virtualbox machine running Ubuntu Server 10.04LTS. My intention is to this machine to work like a VPS, this way I can learn and prepare for when I get a VPS service. Apache+mod_wsgi for ...
1
vote
1answer
541 views

Authorisation in mod_wsgi

I have the following setup, WSGIScriptAlias /i C:/Project/Scripts/hello.wsgi WSGIScriptAlias /hello C:/Project/Scripts/hello.wsgi <Directory "C:/Project/Scripts"> Order deny,allow Allow from ...
0
votes
1answer
102 views

Recent apache + mod_wsgi + django install instructions?

I've been hunting 'round google and the web to get a django setup running with apache and mod_wsgi under ubuntu 10.04, but with no success. Does anyone know of any recent instructions on how to ...
3
votes
1answer
3k views

Installing mod_wsgi into apache2 on Mac OS X?

I used Homebrew to build and install mod_wsgi: $ brew install mod_wsgi ==> Downloading http://modwsgi.googlecode.com/files/mod_wsgi-3.2.tar.gz ...
4
votes
3answers
1k views

Python version for mod_wsgi

how can I change the default version mod_wsgi uses? I am using Debian 5 with Apache 2.
0
votes
3answers
4k views

How can I install wsgi on CentOS using yum?

How can I install wsgi on CentOS using yum? Is there any repository with mod_wsgi?
2
votes
7answers
285 views

I'm DOSing my own Apache server, and I can't stop immediately. What can I do to make things better in the short term?

We've got a BUNCH of distributed clients that, among other things, upload log files to our Apache server. We messed up log rotation on some logs, so we're now uploading relatively large files from ...
-1
votes
2answers
170 views

setting up django on a shared server

I would like to learn how to use django, but I have no experience with servers (don't know how to use apache..) and am having trouble getting started. If I only have access to my home directory on a ...
0
votes
3answers
2k views

Django not running on CentOS but simple wsgi example works

my django.wsgi import os import sys sys.path.append('/var/www/django') os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp.settings' os.environ['PYTHON_EGG_CACHE'] = '/var/www/django/myapp/.python-eggs' ...
0
votes
2answers
500 views

How to display the “Hello world” using apache using Python using mod_wsgl but without CGI

I have installed the Python , apache. The command line programs are working with python. I have two virtual hosts in apache site1.local site2.local WHat i want is i place file in site1 root ...
2
votes
4answers
4k views

How to check if mod_wsgl has correcly installed in apache

I have been trying to install mod_wsgl and django but iwas unsuccessful. I am thinking of going step by step. LEaving django aside how can i make sure that i have mod_wsgl installed correctly so ...
-1
votes
1answer
566 views

Can I optimize this mod_wsgi / apache file better?

I am new to Django/Python/ mod_wsgi, and I was wondering if I could optimize this file to reduce memory usage: ServerRoot "/home/<foo>/webapps/django_wsgi/apache2" LoadModule dir_module ...
1
vote
0answers
97 views

Get Forbidden running under admin

I'm running on the localhost under admin login. And get forbidden everytime: [Mon Jun 07 19:17:40 2010] [error] [client 127.0.0.1] client denied by server configuration: C:/WebPages/ ...