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
1answer
713 views

Configuring apache to run pyramid with mod_wsgi on EC2

I'm trying to setup my server with apache on an amazon EC2 server, but right now it isn't working. In the configuration files, In /etc/apache2, I have: httpd.conf: LoadModule wsgi_module ...
0
votes
1answer
235 views

mod_wsgi woes on x64 windows 7 running Apache 2.2

64-bit Win7 Apache 2.2.19, mod_wsgi/3.4-BRANCH Python/2.7.3 No errors visible in logs: [Wed Aug 01 17:44:48 2012] [notice] Apache/2.2.19 (Win64) mod_wsgi/3.4-BRANCH Python/2.7.3 configured -- ...
0
votes
1answer
227 views

Running two wsgi applications on the same server gdal org exception with apache2/modwsgi

I'm trying to run two wsgi applications, one django and the other tilestache using the same server. The tilestache server accesses the db via django to query the db. In the process of serving tiles ...
2
votes
1answer
261 views

Apache2: mod_wsgi and passenger do not get along

I'm trying to run an instance of apache2 on an ubuntu server with two virtual hosts. One for redmine(phusion passenger), and one for ReviewBoard(mod_wsgi). I haven't created a single server ...
2
votes
1answer
508 views

Do Apache + mod_wsgi httpd.conf settings for django affect mysql?

I have a django website using Apache and mod_wsgi. Since the last 4-5 days I keep getting this type of error on my admin e-mail. OperationalError: (1040, 'Too many connections') I have installed ...
1
vote
1answer
311 views

hosting static files with mod_wsgi

I've followed Graham's simple configuration instructions for hosting static files along with a wsgi application mounted at the domain root. And in fact, my site is working. However, requests for ...
1
vote
1answer
249 views

Apache / mod_wsgi / Django cannot find MySQL shared library

I'm stuck on a case where the MySQL libraries won't be found on a Apache/mod_wsgi/Django deployed server, altough Python alone can import the library correctly. Here's my Apache log errors: [Tue Jul ...
1
vote
3answers
676 views

installing mod_wsgi giving 403 error

installing mod_wsgi giving 403 error httpd.conf i added code below WSGIScriptAlias /wsgi "C:/xampp/www/htdocs/wsgi_app/wsgi_handler.py" <Directory "C:/xampp/www/htdocs/wsgi_app/"> ...
0
votes
2answers
180 views

Any idea of why mod_wsgi creates a coredump in Apache httpd?

I went through the troubleshooting of mod_wsgi but cannot find an answer for my case of segmentation fault. I get the following coredump when the module mod_wsgi is integrated in my Apache httpd ...
0
votes
1answer
107 views

mod_wsgi only working when user is logged in

I've set up a Django application on a Linux server (Ubuntu server 12.4), using Apache (mod_wsgi) and PostgreSQL (psycopg2). I had problems with Postgres' unix authentication, so I chose a regular user ...
0
votes
1answer
169 views

Running apache + mod_wsgi as different user

I have a django project, which I am moving from the dev-server to apache. I have managed to get it server with mod_wsgi, but it runs as apache. Mod_wsgi documentation says, that if apache is run as ...
2
votes
1answer
380 views

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 ...
1
vote
0answers
108 views

Apache conf changes when migrating django project from mod_python to mod_wsgi

Not sure if this is the right place to ask this question, but I'm migrating a django project from mod_python to mod_wsgi and I want to make sure I have my apache configuration correct. The old ...
1
vote
1answer
131 views

mod_wsgi with no access to apache config

Provided that on the server I have: mod_wsgi loaded and enabled all-powerful htaccess, can I use mod_wsgi without the need to edit the global apache config files? I don't have administrative ...
0
votes
1answer
205 views

Django hosting on linux - what's the most memory-efficient technique?

I've got a VPS (Ubuntu 10.04, 512MB) on which I host 10-15 django sites, most of which have intermittent traffic. I'm wondering what the best hosting technique is in this situation, where the ...
0
votes
0answers
195 views

Apache with mod_wsgi and hello world works at first and then fails

I am struggling to get Apache, mod_wsgi and a hello.py script to work reliably on a Gentoo box. It works for a little while (few seconds it seems) after an Apache restart but then starts failing: # ...
3
votes
1answer
1k views

Installing mod_wsgi with python 2.7 on ubuntu

I tried to install mod_wsgi on my ubuntu server using the package manager, but noticed it depends on python 2.6. I'm using python 2.7, and would rather avoid installing 2.6... Does mod_wsgi really ...
0
votes
1answer
213 views

centos default apache log location for virtualhost

may i know what is the default location for the error logs for inidividual sites/virtualhost in apache + centos? Also, if I want to customize the location of the log file, do I define errorLog under ...
2
votes
1answer
231 views

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 ...
0
votes
2answers
676 views

mod_wsgi on Plesk server

I've installed mod_wsgi on my Plesk server, but I can't get it to behave the way I'd like. If I add WSGIScriptAlias /python /var/www/vhosts/domain.com/httpdocs/python/test.wsgi To my config file, ...
0
votes
1answer
225 views

Python with mamp

I have a MAMP 1.9 install on Lion and would like to start using python with it. Mainly to learn and develop django sites. I am very new to python in general. In my research I found that I either need ...
1
vote
2answers
214 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: ...
2
votes
1answer
296 views

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 ...
0
votes
1answer
440 views

Installing Mod-wsgi 3.3 for apache 2.2 and python 3.2

I am attempting to install Mod-wsgi 3.3 on an ubuntu 11.10 desktop edition with apache 2.2 and python 3.2 I downloaded the source tarball and extracted it. I configured it using the ...
1
vote
1answer
433 views

Django error saying “could not connect to server: Permission denied”

I am getting an error trying to visit my Django app. I am running Gentoo and the web server is Apache with the mod_wsgi module to display Django. The error says OperationalError at /admin/ could not ...
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 ...
0
votes
0answers
324 views

Django + Apache with mod_wsgi on Mac. Unable to load MySQLdb

I currently set up a virtual host on Apache to try to host my Django project at django.localhost My apache configurations are correct: hobbes3@hobbes3:~/Sites/mysite$ apachectl configtest Syntax OK ...
0
votes
1answer
353 views

mod_wsgi overriding virtual hosts on Apache?

I have a working Django app hosted on my linode (Fedora 15), and I'm attempting to host a php-based site there as well. I'm using name-based virtual hosts to redirect requests based on the host name, ...
0
votes
3answers
702 views

Debian 5 Lenny how to upgrade Python to 2.7 version to run Django app?

I'm configuring Debian 5 to run my Django app. The required application is required incompatible with Python 2.5 packages. I installed Python 2.7 and created the symlink python -> ...
0
votes
1answer
284 views

Django + Apache + mod_wsgi problems

I have spent the last 2 days attempting to deploy a Django application I've built and tested using the development server built into manage.py. I've read countless tutorials and snippets, and cannot ...
1
vote
1answer
139 views

Can one rely on Apache sanitizing URLs?

I set up Apache with mod_wsgi in a default installation, with a very simple test application test.wsgi that goes like this: def application(environ, start_response): status = '200 OK' output ...
1
vote
1answer
238 views

“AUTHENTICATE_”environment variables missing in Apache + LDAP authentication

According to the Apache 2.2 documentation, after a successful authentication against Active Directory the LDAP attributes specified in the AuthLDAPUrl directive should be available as environment ...
1
vote
1answer
119 views

Installing and running two versions of mod_wsgi in Apache

I'm trying to setup Python3 and Python2 via mod_wsgi on Ubuntu, so I've installed the mod_wsgi_py3 package but also wish to run the py2 version and have it switched depending on a flag within the ...
2
votes
1answer
2k views

Apache2 mod_wsgi python 2.6 Django very slow

I've tried about 1000x things, but I can't seem to figure out why a simple django website is slow using apache 2.2.14/wsgi latest / django 1.3. I've confirmed the problem isn't our database by turning ...
3
votes
1answer
3k views

Apache2 mod_wsgi django Named Virtual Servers

I'm trying to set up two seperate django sites using mod_wsgi on apache. The first site is working fine, but the second site cupaday.dyndns.biz is giving a 403: [Tue Feb 07 22:32:57 2012] [error] ...
1
vote
0answers
75 views

Server returning response for previous requests

It's a really strange problem. I believe it to be a server issue, but it's so strange and hard to reproduce that I'm not entirely sure. Just as the title says I'm receiving responses for earlier ...
0
votes
1answer
502 views

mod_wsgi won't compile - cannot find -lpython3.2

I am trying to install Python 3.2 and mod_wsgi on my web server, but I am not having much luck. I downloaded the Python source files and compiled using this command: ./configure --enable-shared ...
0
votes
1answer
201 views

Python eggs are not imported for Apache2 mod_wsgi

I'm setting up Apache2 and mod_wsgi for Django in Debian, but I found problems. First, these are my directories: /webapps/lib/python2.6/site-packages # python eggs /webapps/lib/python2.6/ # python ...
0
votes
1answer
244 views

centos,django, mod_wsgi & different python installations

I am getting this error File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module TemplateSyntaxError: Caught ImportError while rendering: No module named ...
1
vote
1answer
354 views

Redirecting through httpd.conf with Django and mod_wsgi

I am trying to use Apache's Rewrite module to redirect users before Django catches the request. I tried the following to redirect a user from "test.php" to the "links" page <VirtualHost ...
2
votes
2answers
248 views

Mod_wsgi daemon process status

Is there a way to get the status of the mod_wsgi daemon processes and threads? Something like apache's server status page. My server's taking a while to respond sometimes and I want to see if it's ...
4
votes
1answer
2k views

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 ...
0
votes
1answer
581 views

Segmentation Fault (11) with modwsgi on CentOS 5.7 when running pyramid app

I'm getting Segmentation fault error when trying to access the "Hello World" pyramid app. This error only occurs when running against CentOS 5.7 setup, but no problem whatsoever when tested against ...
2
votes
1answer
1k views

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 ...
0
votes
0answers
27 views

Writing files on mod_wsgi server

I have a Apache server with mod_wsgi installed. I wanted to write a file, run a program with this file as input and send the output file back. How can I get write permission on the server. What is ...
1
vote
1answer
126 views

How do you implement mod_wsgi on web servers?

All of the documentation I've seen outlines the process for self-managed Apache configuration. I currently have my site hosted through Media Temple. Is it possible to configure WSGI for these types of ...
0
votes
1answer
1k views

WAMP Server not working when I add a directory directive

I am attempting to put WSGI (python) on a WAMP server (Apache 2.2.21, Python 2.7, WAMP 2.2a). Unfortunately, when i add just a simple directory directive and restart, Apache won't start. here is the ...
2
votes
1answer
327 views

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 ...
0
votes
2answers
402 views

Apache virtualhost - only apply script if file does not exist in document root

Sorry for the newbie apache question. I'm wondering if it's possible to set up the following non-conventional apache virtualhost (for a Django app): -- If a file exists in the DocumentRoot ...
2
votes
3answers
3k views

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. ...