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.

Filter by
Sorted by
Tagged with
5 votes
4 answers
13k views

Make mod_wsgi use python2.7.2 instead of python2.6?

i am running Ubuntu 10.04.1 LTS and it came pre-packed with python2.6 but i need to replace it with python2.7.2. (The reason is simple, 2.7 has a lot of features backported from 3 ) i had ...
guron's user avatar
  • 51
19 votes
6 answers
29k views

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 ...
Suraj's user avatar
  • 469
17 votes
2 answers
15k views

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 ...
MarkD's user avatar
  • 273
2 votes
1 answer
6k 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 ...
shreddd's user avatar
  • 193
27 votes
2 answers
22k views

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 ...
Thierry Lam's user avatar
  • 6,321
26 votes
7 answers
47k views

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 ...
AutomatedTester's user avatar
14 votes
4 answers
3k views

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 ...
JCWong's user avatar
  • 241
7 votes
1 answer
42k views

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, ...
codeinthehole's user avatar
6 votes
1 answer
4k views

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:...
David Eyk's user avatar
  • 687
3 votes
2 answers
12k views

Python: ImportError: No module named os [closed]

error_log ... [Fri Sep 07 16:30:14 2012] [error] import os [Fri Sep 07 16:30:14 2012] [error] ImportError: No module named os -shell- [root@lts5srv1 home]# ldd /root/epd-5.1.0/bin/python ...
Kreshnik's user avatar
  • 155
3 votes
1 answer
33k views

apache2.4 virtual host blocking access with authz_core log, even though authz not configured

So I'm getting 403: Forbidden errors on one of my apache2.4 virtualhosts. What's interesting, is that /var/log/apache2/error.log reports: authz_core:error] [pid 4878:tid 140394394269440] [client 10....
1n5aN1aC's user avatar
  • 145
2 votes
1 answer
4k 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 ...
pllee's user avatar
  • 121
2 votes
2 answers
685 views

my first "production" debian server configuration

I have been using Debian for a year, mostly as the distro for my internal company server. Now I am making a public e-commerce website and I am planning to use a dedicated Debian server at a datacenter ...
user avatar
2 votes
3 answers
2k views

Apache2 return 404 for proxy requests before reaching WSGI

I have a Django app running under Apache2 and mod_wsgi and, unfortunately, lots of requests trying to use the server as a proxy. The server is responding OK with 404 errors but the errors are ...
Alejandro Mezcua's user avatar
2 votes
1 answer
3k views

Running multiple Django projects within Apache, sys.path being over written

I have been trying to research how to do a multiple Python / Django deployment using Apache VirtualHosts. The issue I am encountering seems straight forward, ImportError: Could not import settings '...
Tim's user avatar
  • 23
2 votes
2 answers
12k views

Can't locate API module structure `mod_wsgi'

I'm working on setting up Trac to use wsgi, and am running into trouble getting mod_wsgi working. I downloaded and installed mod_sgi. [box]# apachectl configtest httpd: Syntax error on line 214 ...
a coder's user avatar
  • 799
1 vote
1 answer
9k views

Django 2.1 deployment on centos 7 with apache, mod_wsgi, python3 venv

I've stumbled with this seemingly most relevant deployment option because guides seem to either reference mod_wsgi with python2, or deployment on deb based systems where expected paths are different. ...
J D's user avatar
  • 163
1 vote
2 answers
360 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: ...
quarry32's user avatar
  • 255
1 vote
0 answers
664 views

Apache bloodhound installation, AWS host not serving site

Following the installation instructions here I went through the entire process on an AWS instance. Everything seems to be setup correctly, I can even run BH off the development server using: tracd ./...
knishka's user avatar
  • 111
0 votes
2 answers
3k views

Reference the matched directory inside an Apache DirectoryMatch directive

I am attempting to configure Apache to host multiple django sites via mod_wsgi. The mod_wsgi setup tutorial gives an example configuration for this scenario where each app is in the same directory: ...
Mark Roddy's user avatar
0 votes
1 answer
10k views

Cannot run mod_wsgi on Apache 2.4 x64 Windows

I have a Apache 2.2 installation with a site on Django. I load mod_wsgi.so module in my Apache config. Now I'm trying to migrate onto Apache 2.4 and have difficulties with WSGI. First of all: my ...
Shrike's user avatar
  • 195
0 votes
1 answer
2k views

Apache and mod_wsgi, worker process stuck to W state, request never dies. How to diagnose?

I am running Apache 2.2 with mod_wsgi, Python 2.7 and mpm_worker. Occassionally, one of the worker processes gets stuck and all of it threads stop in writing state (as demostrated in the screenshot ...
Mikko Ohtamaa's user avatar
0 votes
1 answer
899 views

Django site running in Apache 2.4.6 on Centos giving 503 server error

Please assist. I have a Django site that i'm trying to configure to run in apache using mod_wsgi. I have setup my virtualhost as follows: <virtualhost *:80> ServerName mysite.com ...
Dean's user avatar
  • 129