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

4
votes
2answers
1k 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 ...
1
vote
2answers
1k views

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 ...
1
vote
1answer
46 views

Passing LD_PRELOAD to apache 2.4 for mod_wsgi

I can't adapt this question for mod_wsgi. I have a python flask application that uses gdal. I start it up the following way: LD_PRELOAD=/opt/gdal-custom/lib/libgdal.so.1 PYTHONPATH=../somemodules/ ...
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 ...
1
vote
1answer
1k views

Enabling mod_wsgi in Apache for a Django app on Gentoo

I installed Apache, Django, and mod_wsgi on Gentoo using emerge (on Amazon EC2). I know that the mod_wsgi is configured in /etc/apache2/modules.d/70_mod_wsgi.conf: <IfDefine WSGI> LoadModule ...
1
vote
0answers
35 views

Apache and mod_wsgi returning 504 error when posting specific SVG string

I have a wierd 504 error occuring in Apache + mod_wsgi when I post a specific SVG string. The backend application is Python Flask, but it does not seem to get to the application at all. Here is one ...
2
votes
2answers
469 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 ...
1
vote
1answer
319 views

Apache not serving my python app

So here's my apache config: LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so <VirtualHost *:80> ServerAdmin marijus.merkevicius@gmail.com ServerName 31.220.49.197 ...
0
votes
1answer
22 views

Two mod_wsgi Django apps on one Apache are trying to use each other's config files

I have two unrelated mod_wsgi Django apps, which need to be served from two virtual hosts in one instance of Apache2. I've made each a virtual host, each with its own directory, settings.py and ...
0
votes
1answer
930 views

Django mutli-threading on apache/mod_wsgi/windows

I am quite new to the combination of apache and django and quite naive frankly regarding to how multi-threading is handeled. Specifically I run on a windows server, so I know the MPM is only ...
0
votes
1answer
66 views

Limiting memory and CPU usage per httpd.worker, with apache/mod-wsgi?

Upon running certain functions within a web application, the 'top' command sometimes shows CPU usage for a particular httpd.worker going up to 100%; also, the memory use per worker sometimes gets high ...
0
votes
1answer
26 views

mod_wsgi authorization with Django users from postgres database

I am trying to protect a url path with basic auth and want to use the users from my Django application which are stored in a Postgres database. The user app is allowed to access this database, the web ...
2
votes
3answers
3k 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 ...
1
vote
2answers
723 views

Configuring mod_wsgi to use Python 2.7 [duplicate]

I am trying to configure mod_wsgi to use Python 2.7. I downloaded and unpacked the source and ran ./configure --with-python=/usr/local/bin/python2.7 After this mod_wsgi.so-2.4 and mod_wsgi.so-2.5 ...
-1
votes
1answer
28 views

virtualhost not working properly, site only displays with www prefix

I'm configuring my first Apache server with mod_wsgi and it isn't working properly. The script runs fine if the browser navigates to : www.sitename.com, but navigating to sitename.com only displays ...
1
vote
1answer
188 views

mod_wsgi not working on Apache 2.4.12 64 bit on Windows 7

I'm running Apache (Haus) 2.4.12 64 bit on Windows 7 64 bit. Python 2.7.9 64 bit is installed. Apache is running flawless if I don't try to load mod_wsgi. I downloaded mod_wsgi.so from this site. I ...
0
votes
1answer
58 views

Django process hangs when connecting to database in Apache

I'm having an issue with Djang in Apache. It is running in daemon mode and using worker MPM. The application is mostly a restful API that is serving connections from Mobile devices and external web ...
3
votes
0answers
183 views

mod_wsgi End of script output before headers

I have a problem with my web application. Sometimes when people upload an image (seems to happen with large image only), I have mod_wsgi who crash with this message : End of script output before ...
1
vote
2answers
38 views

Where is WSGI installed on Centos?

I am getting a permissions issue when running django in daemon mode. Reading here https://code.google.com/p/modwsgi/wiki/ConfigurationIssues#Location_Of_UNIX_Sockets I think the solution is to ...
0
votes
3answers
3k views

Apache mod_wsgi error: ImportError: No module named django.core.handlers.wsgi

I am using Python 2.7 with mod_python 3.3.1 and mod_wsgi 3.3. I get an Internal Server Error and this stack trace in the apache logs: [Thu Apr 21 10:25:37 2011] [error] [client 83.244.243.242] ...
0
votes
1answer
1k 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 ...
0
votes
0answers
44 views

Apache swapping virtual host entries each request

I have the following httpd.conf. Based on the different domain, it should route the request to the appropriate entry showing a different site based on a similar code base. The problem is that it ...
1
vote
1answer
48 views

Is it possible to run two instances of mod_wsgi?

I have two python apps I'd like to run on the same server. One requires Python 2.7, the other requires Python 3.3. I'm running CentOS 6.6 with httpd 2.4 and the python 2.7 and 3.3 SCLs. The Python 2.7 ...
0
votes
0answers
23 views

apache2 performance drops, losing processes using mod_wsgi

I'm running a Python/Jango website on the Amazon cloud. The site itself works, but when I try to stress test it, I notice that for a short moment, I can process 70 requests per second, but after a ...
1
vote
0answers
591 views

mod_wsgi ImportError with a flask app

I'm trying to deploy a Flask app using apache and mod_wsgi. I've been following the directions here. The simple hello-world example that is on that site works perfectly. When I try to substitute my ...
0
votes
0answers
38 views

Apache doesnt start after mod_wsgi re compile

I recently had to rebuild python and mod_wsgi in order to get a django site working. The problem is now apache doesnt start. I'm running RHEL6, and Apache 2.2 This guide is what I followed ...
1
vote
0answers
69 views

how to serve a single page application with openshift

I'm tryng to deploy a single page app on openshift. On openshift all the static contents have to be in wsgi/static dir, but I obviously want to serve my static index.html from the root. Every attempts ...
0
votes
1answer
269 views

Unsupported version control system “svn”: No module named svn

I'm using The Trac Project with TracModWSGI – The Trac Project on RHEL7: # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.0 (Maipo) # rpm -q httpd mod_wsgi subversion swig ...
1
vote
3answers
334 views

Ubuntu upgrade broke django mod_wsgi

I'm banging my head here and can't seem to find the answers anywhere. My server is running Ubuntu 14.04. I run several django sites using apache and mod_wsgi Today after an update, the sites will ...
0
votes
1answer
201 views

How to point Ubuntu 14.10 Apache2 (mod-wsgi) server to a specific virtual environment (Python 3.4 / Flask)?

I am running apache2 (mod-wsgi) on Ubuntu 14.10. I am getting 500 Internal Server Error when serving my web-site. I am also using Flask and Python 3.4, and virtual environment. It appears that Ubuntu ...
2
votes
0answers
439 views

WSGI/APACHE - “ImportError: No module named site”

I am trying to get a django website up and running using WSGI. The box is running centos 5 with python 2.6. I am attempting to use the anaconda distribution from continuum analytics installed in ...
1
vote
2answers
85 views

Trac/Apache Displays Script Contents (WSGI)

I am struggling with a new Trac 1.0.3 install (from source after having same issue installing via easy_install). Debian 7.8 Apache 2.2.22 Python 2.7.3 Genshi 0.6 Sqlite 3.7.13 WSGI 3.3 I created ...
0
votes
1answer
106 views

strange strace output of httpd process of apache running django with mod_wsgi

I have about 12 httpd processes running for an RHEL aws box that no one is hitting in the browser (shared team dev box). These processes together are consuming over 1.8 GB on the dev box, and I have ...
1
vote
1answer
51 views

MOD_WSGI Daemon Mode multiple hanging httpd processes

As a python developer I had some understanding of how mod_wsgi works, which is that it launches a new python process with each request. That is not to say a new httpd process, rather a single httpd ...
0
votes
1answer
161 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 ...
1
vote
0answers
14 views

Is there an automated installer/manager for mod_wsgi 3.4?

# yum --showduplicates list mod_wsgi | expand Loaded plugins: fastestmirror Determining fastest mirrors * base: mirror.cov.ukservers.com * epel: mirrors.coreix.net * extras: ...
0
votes
0answers
27 views

Mod_wsgi settings best practices

I have built an app for an internal audience at my company - launching this week. However, despite being an "internal" app, the number of people hitting this app could spike from time to time. To ...
0
votes
1answer
356 views

virtualenv Failed to map segment from shared object: Permission denied

When SELinx is in permissive the Django webapp runs fine with no alerts. The below error appears in the Apache error log, once SELinux is set to enforcing, but, still, not alerts are logged to ...
0
votes
0answers
500 views

Cannot load /etc/httpd/modules/mod_wsgi.so into server: libpython2.7.so.1.0

I've been working for the past 2 days trying to get mod_wsgi setup properly so it will work with my virtualenv and Django site in Python 1.7. [root@server mod_wsgi-3.4]# service httpd restart ...
1
vote
1answer
230 views

Installing mod_wsgi error - config.status: error: cannot find input file: Makefile.in [closed]

Below, I'm trying to install mod_wsgi. [root@server]# ./configure --with-python=/usr/local/bin/python2.7 checking for apxs2... no checking for apxs... no checking Apache version... ./configure: line ...
1
vote
1answer
80 views

apache fails to load mod_wsgi: complains of 'missing symbol'

When I run apachectl configtest after installing mod_wsgi I get the following error message: httpd: Syntax error on line 117 of /private/etc/apache2/httpd.conf: Cannot load ...
2
votes
1answer
263 views

Python background task thread lock error with mod_wsgi

I have a small python web application built on the Flask framework and deployed with mod_wsgi to apache. The application is scheduling a background task with apscheduler that runs every couple of ...
3
votes
1answer
2k views

How can I make apache give the config file path and line number for a 403 error

I'm running Apache 2.4.7 on debian unstable. I'm getting 403 errors when I try to run supysonic using the mod_wsgi module. I turned the LogLevel for wsgi and authz_core up to trace6, but I'm still ...
2
votes
2answers
1k views

Apache - Difference between ScriptAlias and WSGIScriptAlias

I'm using apache on RHEL Linux server In my /etc/httpd/conf.d/httpd.conf there are two directives: WSGIScriptAlias /apps /var/www/apps <Directory /var/www/apps > Options MultiViews ExecCGI ...
13
votes
2answers
5k 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 ...
1
vote
2answers
911 views

Tuning django based site deployed using apache wsgi for better performance

I'm running django application using apache+mod_wsgi, I have setup 6 medium ubuntu servers on Amazon ec2 in which 2 for mongo and 4 for django and apache, using ebs for postgresql and configured a ...
0
votes
2answers
859 views

mod_wsgi and mod_php running together - possible?

I was wondering is it possible to run apache with mod_wsgi and mod_php running together to serve python and php pages? If so were can I find info on doing this? Thanks
0
votes
0answers
36 views

scrapping not working Django+Apache+wsgi Production server

I developed a django app which uses beautifulsoup4 and urllib2 to parse the data from webpages.It was working well on my development server but when I put the same on Apache+wsgi server, the scrapping ...
0
votes
0answers
80 views

Tuning and configuring Django Application with Apache & Mod Wsgi

We are running Django Application using Apache+mod-wsgi. application is taking too long to load. even a single list view page load takes 6-15 seconds. Can you suggest improvements? Provided are my ...
0
votes
1answer
794 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 ...