Tagged Questions

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
3answers
748 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
757 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
249 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 ...
2
votes
2answers
166 views

How to manually start and re-start Apache with mod_wsgi powering a password protected Python WSGI app?

I'm working on a project where I have to meet some regulatory requirements that require at least 3 out of 5 authorized users to start a backend web service that handles very sensitive information ...
0
votes
1answer
78 views

Where are my installed files on Amazon?

This sounds like a real noob question but I cannot figure this out. I'm trying to get Apache, mod_wsgi and Django playing together on my EC2 instance. So I've installed mod_wsgi using the root user ...
1
vote
3answers
627 views

Which user account should be used for WSGIDaemonProcess?

I have some Django sites deployed using Apache2 and mod_wsgi. When configuring the WSGIDaemonProcess directive, most tutorials (including the official documentation) suggest running the WSGI process ...
0
votes
1answer
137 views

How can I build mod_wsgi 3.3 on Ubuntu 8.04?

How can I build mod_wsgi 3.3 on Ubuntu 8.04?
1
vote
2answers
301 views

Problem with deploying django application on mod_wsgi

I seem to have a problem deploying django with mod_wsgi. In the past I've used mod_python but I want to make the change. I have been using Graham Dumpleton notes here ...
1
vote
1answer
315 views

django, mod_wsig , KeyError Threading ignored

I am getting this error from mod_wsgi: [Thu Feb 24 23:31:33 2011] [error] Exception KeyError: KeyError(140115471374144,) in <module 'threading'from '/usr/lib/python2.6/threading.pyc'> ignored ...
2
votes
2answers
711 views

wsgi and python print statements

I have become aware that the print statements in my django app are causing wsgi to error and fail. Without going over all my code and removing/commenting out the print statements, is there a way I can ...
0
votes
1answer
587 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
1k 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
393 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
582 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
386 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
747 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 ...
2
votes
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
386 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
117 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
703 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
208 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
602 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
2k 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
227 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
1k 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
423 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
481 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
458 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
259 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
935 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
692 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
467 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
363 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
4k 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
94 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
592 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
729 views

Limit a form post size with Apache / Django - clarification

There is already an answered question on this topic: Limit a form post size with Apache / Django but I'm not sure what this means: "If, for example, you are permitting file upload to a particular ...
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
350 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
518 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 ...