Questions tagged [mod-wsgi]

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

mod_wsgi is a simple to use Apache module which can host any Python application which supports the Python WSGI interface. The module would be suitable for use in hosting high performance production web sites, as well as your average self managed personal sites running on web hosting services.

399 questions
2
votes
1 answer

django, mod_wsgi, MySQL High CPU - Problems

I am having a problem with an OSQA site. It is Django/Apache/mod_wsgi configured site. Every hour, the CPU spikes to 164% (Average) for task HTTPD. After 10 minutes, it frees back up. I have reviewed the logs, cron tables, made many config changes,…
Red Rover
  • 31
  • 3
2
votes
1 answer

Apache, mod_wsgi, Django Error When Not SSH'd In To Server

I'm getting some strange errors that I've worked through to this point. I have an Ubuntu server setup with Apache + mod_wsgi + Django. When I'm SSH'd into the server, I can access the website fine from a browser on a different machine, and…
2
votes
1 answer

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 ? Sl 17:32 0:00 /usr/sbin/apache2 -k start Where…
quarry32
  • 255
  • 2
  • 11
2
votes
1 answer

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 unsatisfied with the behavior (definitely because…
Stefano
  • 763
  • 1
  • 12
  • 23
2
votes
1 answer

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 here) Mercurial 2.0 (system-wide) However, when…
jasonh
  • 357
  • 2
  • 4
  • 13
2
votes
3 answers

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. My settings are: ... …
Honza Javorek
  • 123
  • 1
  • 1
  • 5
2
votes
1 answer

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 ram allotted currently. I haven't really touched…
pllee
  • 121
  • 1
  • 3
2
votes
2 answers

Apache - mod rewrite with virtual host question

I have Apache 2.0 set up with a virtual host like this: ServerName wackystore ServerAlias wackyprojects Alias /media/admin /opt/python/lib/python2.7/site-packages/django/contrib/$ Alias /media…
Greg_the_Ant
  • 489
  • 7
  • 26
2
votes
1 answer

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 virtual hosts as well? For example, if I…
shreddd
  • 193
  • 2
  • 9
2
votes
4 answers

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, external libraries) are built from source, not installed…
2
votes
2 answers

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 this to work out of http://hostname/~www/…
Jayen
  • 1,857
  • 4
  • 16
  • 28
2
votes
4 answers

Apache MaxClients setting when KeepAlive is Off

with apache, is it reasonable to reduce MaxClients when KeepAlive is Off? currently, MaxClients is set to 150, which is the default for mpm-worker. nginx serves static files and reverse-proxies to apache we are averaging around 12-15 requests per…
matt
  • 129
  • 1
  • 5
2
votes
2 answers

Deploying Django with mod_wsgi

/etc/apache2/site-available/mysite.com ServerAdmin foo@mysite.com ServerName mysite.com ServerAlias www.mysite.com WSGIScriptAlias / /srv/www/mysite.com/djangoproject/django.wsgi
Fred Collins
  • 251
  • 1
  • 4
  • 10
2
votes
1 answer

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 http://127.0.0.1/ and got 4 requests per second. This seemed…
asciitaxi
  • 143
  • 3
2
votes
1 answer

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 response from the server with "Error 400" in the…
ayaz
  • 483
  • 3
  • 10