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
26
votes
7 answers

How to set up Mod_WSGI for Python on Ubuntu

I am trying to setup MOD_WSGI on my Ubuntu box. I have found steps that said I needed to do the following steps I found at http://ubuntuforums.org/showthread.php?t=833766 sudo apt-get install libapache2-mod-wsgi sudo a2enmod mod-wsgi sudo…
AutomatedTester
  • 421
  • 1
  • 4
  • 10
26
votes
2 answers

How many processes should I specify in a WSGIDaemonProcess while running Django through mod_wsgi?

Let's say I have 2 sites(Superuser and Serverfault) running from their own Apache virtual host on one box. The 2 sites are powered by Django and are running on Apache with mod-wsgi. A typical configuration file for one of the site will look like…
Thierry Lam
  • 6,041
  • 9
  • 26
  • 24
16
votes
5 answers

WSGI : Truncated or oversized response headers received from daemon process

System Configuration : Apache2, Django 1.10, Python 3, Ubuntu 16.04 LTS Django debug=True. /var/log/apache2/error.log [52:53.057967] [wsgi:error] [pid 4303] [client 1.1.1.22:24409] Timeout when reading response headers from daemon process…
Suraj
  • 419
  • 1
  • 3
  • 12
14
votes
2 answers

Non-responsive apache + mod_wsgi after installing scipy

I am currently running a Centos 6.4 server, with Apache 2.2.15 and mod_wsgi 3.2. The server is hosting a django-based site (django 1.5.1, python 2.6.6). Everything was running fine until I installed scipy 0.12.0 via pip. Now, when I attempt to…
MarkD
  • 243
  • 1
  • 2
  • 5
14
votes
4 answers

Deploying Django App with Nginx, Apache, mod_wsgi

I have a django app which can run locally using the standard development environment. I want to now move this to EC2 for production. The django documentation suggests running with apache and mod_wsgi, and using nginx for loading static files. I am…
JCWong
  • 241
  • 2
  • 3
10
votes
2 answers

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 requests: ab -c 5 -n 1000 "my_url" ...causes this…
litterbug
  • 121
  • 1
  • 4
8
votes
2 answers

Incorrect deployment of WSGI app to AWS using Elastic Beanstalk

cross-link to AWS forums I have developed a simple Python web service using WSGI and would like to deploy it to AWS cloud using Elastic Beanstalk. My problem is I cannot make all the options I specify in Elastic Beanstalk configuration to be…
8
votes
1 answer

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 site My /var/log/apache2/error.log (for today)…
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
7
votes
1 answer

Reason for "Gateway Timeout" (mod_wsgi)

I get "Gateway Timeout" 504: The gateway did not receive a timely response from the upstream server or application. I use apache with mod_wsgi Version 4.4.8. In the apache error log I see: Timeout when reading response headers from daemon process…
guettli
  • 3,113
  • 14
  • 59
  • 110
7
votes
1 answer

How to get nginx to pass HTTP_AUTHORIZATION header to Apache

Am using Nginx as a reverse proxy to an Apache server that uses HTTP Auth. For some reason, I can't get the HTTP_AUTHORIZATION header through to Apache, it seems to get filtered out by Nginx. Hence, no requests can authenticate. Note that the…
codeinthehole
  • 313
  • 2
  • 6
  • 10
7
votes
3 answers

Python version for mod_wsgi

how can I change the default version mod_wsgi uses? I am using Debian 5 with Apache 2.
Etam
  • 171
  • 1
  • 1
  • 5
7
votes
3 answers

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?
sorin
  • 7,668
  • 24
  • 75
  • 100
6
votes
1 answer

mod_wsgi "Call to 'site.addsitedir()' failed" on AWS Elastic Beanstalk Python 3.6 platform

On AWS Elastic Beanstalk, on the "64bit Amazon Linux 2017.09 v2.6.0 running Python 3.6" platform, there seems to be a problem with the mod_wsgi configuration. I see this in /etc/httpd/conf.d/wsgi.conf: WSGIDaemonProcess wsgi processes=1 threads=15…
David Eyk
  • 667
  • 1
  • 7
  • 17
6
votes
1 answer

Django with Apache and mod_wsgi: no system log unless setting Debug = True

I'm using apache web server and mod_wsgi to transfer request to django. $ apache2ctl -v Server version: Apache/2.4.10 (Raspbian) Server built: Sep 17 2016 16:40:43 I'm using this apache site to declare django app: ServerName…
Thomas
  • 61
  • 1
  • 5
6
votes
1 answer

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 to WSGI daemon process 'mysite.com-ssl' on…
Bartek
  • 759
  • 2
  • 8
  • 12
1
2 3
26 27