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
1
vote
2 answers

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 load balancer around all apache servers, each server…
user969923
  • 113
  • 1
  • 4
1
vote
1 answer

How to configure Apache with mod_wsgi so that error messages come from the application?

I have deployed a WSGI application in Apache2 with mod_wsgi. The application is made so that it responds with a 400 response code if the data provided by the user in a form is invalid. The response also contains the HTML with the form and invalid…
manu
  • 160
  • 12
1
vote
1 answer

Django WSGI application in a subdirectory?

Recently, I wanted to put one of my WSGI applications into a subdirectory, so that the other directories that cointain various scripts would work as before. In order to do that, I added the following directive to my httpd.conf in global namespace…
d33tah
  • 321
  • 5
  • 15
1
vote
0 answers

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 ./bloodhound/environments/main --port=8000 Once I…
1
vote
2 answers

Check apache modwsgi reload is working correctly

I deployed a application a while ago and it is currently in production. I learned about and attempted to set up code reloading. I read and followed the documentation. and now I'm looking for a way to check to see if I have configured everything…
AlexLordThorsen
  • 147
  • 1
  • 6
1
vote
0 answers

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 own Flask app, I get a 500 Internal Server Error.…
bgschiller
  • 111
  • 3
1
vote
0 answers

Soccorro server does not work

I tried to configure Socorro server with apache as described here. I started httpd, but when I contact it with browser it doesn't respond. In lynx I get: HTTP request sent; waiting for response. When I remove crash-reports.conf, crash-stats.conf and…
remdezx
  • 111
  • 3
1
vote
1 answer

Apache2/mod_wsgi mod_headers issue

I'm running mod_wsgi on Ubuntu Server 12.04 with Django, but I can't seem to get mod_headers working. I've run a2enmod headers, and got the response that I need to restart apache for it to work, which I have done. I added in a simple directive so…
RTF
  • 218
  • 2
  • 11
1
vote
2 answers

django + apache2, each user takes up a lot of memory

I'm running my django app on apache2 (with mpm prefork) with a mysql database. It works fine, except when multiple users use it, and it takes around 40-45m RES for each user. httpd.conf: WSGIScriptAlias / /home/myproject/apache/django.wsgi Alias…
user_2000
  • 111
  • 1
1
vote
1 answer

mod_wsgi : share daemon processes between vhosts

I have many sites each using the same 5 Django applications (with local settings), hosted on Apache. At present each site app has its own config as follows: WSGIDaemonProcess api_example threads=15 maximum-requests=2000 WSGIProcessGroup…
rorycl
  • 848
  • 1
  • 6
  • 10
1
vote
1 answer

mod_wsgi daemon mode not working in Apache

I have problems getting mod_wsgi to run in daemon mode on my Debian / Apache 2.2.16 / Python 2.6.6 / mod_wsgi 3.3 / Django 1.3 setup. Everything works OK in embedded mode, but when I try to switch to daemon mode like described in so many HOWTO's, it…
1
vote
1 answer

only django work in presence of mod_wsgi , PHP not working

I am using PHP with apache2 and MySQL on a rackspace server, it is unmanaged cluoud hosting. I am hosting multiple sites using virtual host. Now i want to use Django on it. A site needs django so I have installed django and mod_wsgi using apt-get…
Hafiz
  • 113
  • 5
1
vote
1 answer

Closing open descriptors in apache2 prefork

I am running mod_wsgi and Django on apache2 httpd 2.2.12. I do quite a few os.system() and subprocess.Popen() calls, and was wondering: is there any option/directive to configure apache2 so that the prefork child processes close all file…
1
vote
1 answer

ImportError: No module named _socket? WSGI Deployment into Apache

I am using WSGI 3.3 for python 2.7.3 (32bit) for Apache 2.2. I got the binary WSGI from http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-win32-ap22py27-3.3.so. I have been trying to deploy an application but keep on receiving the…
Sxkaur
  • 11
  • 1
  • 4
1
vote
1 answer

Restarting or stopping apache results in waiting forever

I have two simple WSGI apps running on top of mod_wsgi and apache2 (worker) on a test development server. There is no mod_python on this machine. The WSGI configuration is as follows WSGIDaemonProcess tops stack-size=524288 maximum-requests=5 …
steko
  • 111
  • 6