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

How to know where is the memory leak of apache2 server

I have an apache2 server, and recently it seems that there is memory leak. I use mod_wsgi to write server WEB service in Python. At first I think it's my python program that leak the memory. But after top command, I can't find any process who leak…
demonguy
  • 125
  • 3
1
vote
2 answers

Apache tries to access wsgi-rest parameters in DocumentRoot (AH01797)

I have the following apache2/wsgi configuration, which works fine, except that apache keeps logging: [info] Initial (No.1) HTTPS request received for child 1 (server myserver:443) [error] [client ] client denied by server configuration:…
x539
  • 162
  • 5
1
vote
0 answers

Unable to diagnose downtime / memory issues with Apache and mod_wsgi

I have an Ubuntu EC2 instance (t1.micro, 600mb of RAM) running mod_wsgi on Apache, to serve a Django app. This is all behind a load balancer. The problem I keep running into is that I can only seem to get a few days of uptime before my site goes…
kayeight
  • 11
  • 1
1
vote
1 answer

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/ scl enable python27 "source…
Justin Dearing
  • 1,037
  • 12
  • 33
1
vote
2 answers

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 configure the WSGISocketPrefix The problem is that…
petey
  • 572
  • 3
  • 9
  • 20
1
vote
1 answer

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 app is currently deployed through apache. I'm…
Justin Dearing
  • 1,037
  • 12
  • 33
1
vote
2 answers

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 the Trac environment in /var/trac and…
user1801810
  • 145
  • 6
1
vote
1 answer

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 seen it up to 6 GB on production. Each one of…
Sam Hammamy
  • 189
  • 5
  • 17
1
vote
0 answers

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: centos.serverspace.co.uk * updates: mirror.cov.ukservers.com Available…
User
  • 1,405
  • 3
  • 14
  • 17
1
vote
1 answer

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 process running something like python…
Sam Hammamy
  • 189
  • 5
  • 17
1
vote
1 answer

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

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 1704: apxs: command not found ./configure: line…
User
  • 1,405
  • 3
  • 14
  • 17
1
vote
1 answer

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 /usr/libexec/apache2/mod_wsgi.so into server:…
AndrewE
  • 11
  • 3
1
vote
3 answers

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 not work. I can see that libapache2-mod-wsgi:amd64…
Andy1212
  • 11
  • 2
1
vote
1 answer

Django, mod_wsgi, pyvenv-3.4 - configuration

I'm trying to deploy my first, simple django website. I have an VPS with Ubuntu 14.07 Server, Apache 2.4.7 with mod_wsgi. So, i added this vhost: ServerName api.XXX.net ServerAdmin webmaster@XXX.net DocumentRoot…
brylcio16
  • 23
  • 5
1
vote
0 answers

Apache periodically shutting down once per week

I'm using apache (with mod_wsgi and django), and everything works fine, except rather strangely once per week apache seems to shutdown, and I have to login to the server to restart it to get my sites back up. Each week this happens at around…
fpghost
  • 673
  • 1
  • 10
  • 22