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

0
votes
0answers
11 views

Why apache throws target WSGI script not found when linking to Flask app?

I want to setup my flask app for apache on my ubuntu server using wsgi. But after my setup, I get the following browser error: Not Found The requested URL / was not found on this server. The apache ...
2
votes
1answer
95 views

How do I install mod_wsgi in Apache for python 3.5 on CentOS 7 if apxs2 is missing?

I am currently trying to install mod_wsgi 4.4.21 into Apache 2.4 for a Python 3.5 web server on CentOS 7. Under "Configuring The Source Code" in the Quick Installation Guide, it says this: On ...
1
vote
1answer
28 views

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

Number of Apache ModWSGI threads for Django App?

Is there any point of specifying the number of threads for a Django app running in Apache's ModWSGI, and if so, what would the optimal value be? This post explains how to best select the number of ...
0
votes
0answers
56 views

FreeIPA one domain starts showing “Internal Server Error”

When i want to check list of domains in one zone im getting "Internal Server Error". This is what i have in my http error log file: [Tue Nov 17 15:19:48.429112 2015] [:error] [pid 3930] (70007)The ...
0
votes
0answers
47 views

Apache - Web2py - mod_wsgi Installation / 403 Forbidden error

I have a Debian 8 server with Apache 2.2 installed on. I try to run Web2py with using Apache mod_wsgi . I followed the steps at : web2py deployment recipes . But I cannot access the web application. ...
1
vote
0answers
21 views

Apache tries to access wsgi-rest parameters in DocumentRoot

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

WSGIPythonHome and WSGIDaemonProcess configuration conflict

I want to deploy 2 Django apps in my server using mod_wsgi: Testing and Prod. Each one has a different virtual enviroment. I did the following configuration: mod_wsgi configuration: WSGIPythonHome ...
0
votes
1answer
120 views

Apache mod_wsgi installation error

I'm running CentOS 6.7, I'm trying to install mod_wsgi (https://code.google.com/p/modwsgi/) Normally I'd just do: yum install mod_wsgi But since I need to make sure it compiles under Python 2.7 ...
0
votes
0answers
16 views

How do I configure the following Apache server? [duplicate]

Honestly saying I've read apache documentation, but there are too many parameters, that I don't know how to configure (KeepAlive, ServerLimit, StartServers, MaxRequestWorkers, MinSpareThreads, ...
1
vote
0answers
69 views

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

Apache mod_wsgi virtualenv

I would like to install mod_wsgi for my apache server. I've seen in the documentation that I have 2 ways to install: 1. directly for the apache 2. with pip In case I install it with pip, as far as ...
1
vote
1answer
40 views

Deploying django website only for local network?

I developed a website with Django and I am deploying it with apache and mod-wsgi (as explained here). The catch is that I want to make sure that this website is accessible only on my local network. ...
0
votes
1answer
115 views

mod_wsgi keeps using system python

I installed apache 2.4 on ubuntu 14.04 with mod_wsgi 4.4 from source and pyenv to use python 2.7.9. I set up the apache configuration to work with pyenv. I'm getting the following error when I run ...
0
votes
0answers
53 views

Deploying Django application as Wordpress subpage (at sub url), mod-wsgi

I have a Wordpress blog, let's say that it's address is like yakblog.org and it is a Wordpress blog installed on Ubuntu 12.04 server. Now, I would like to run a Django application as one of the sub ...
1
vote
1answer
161 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/ ...
1
vote
1answer
152 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 ...
0
votes
1answer
140 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
386 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
79 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 ...
-1
votes
1answer
50 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
2k 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 ...
1
vote
2answers
91 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
1answer
211 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 ...
4
votes
0answers
582 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 ...
0
votes
0answers
60 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
106 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
29 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 ...
0
votes
0answers
61 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
157 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
600 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
2answers
151 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
263 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 ...
0
votes
1answer
939 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 ...
0
votes
1answer
171 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
0answers
18 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: ...
1
vote
1answer
106 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
646 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
745 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
511 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 ...
2
votes
1answer
537 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 ...
1
vote
1answer
137 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 ...
1
vote
3answers
629 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 ...
2
votes
1answer
610 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
0answers
49 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
1answer
3k 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
1answer
640 views

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: <VirtualHost *:80> ServerName api.XXX.net ...
0
votes
1answer
1k views

How to reinstall python2.7 on CentOS 6 in order to install mod_wsgi [closed]

I've installed Python2.7 from source on a CentOS 6 VPS, and I'd like to get a Django site up and running. Unfortunately, everything I've Googled so far says that I'll need to install mod_wsgi, which ...
1
vote
0answers
121 views

Configuring mod_wsgi daemon mode processes and threads

I am planning to use mpm_worker or mpm_event with daemon mode of mod_wsgi. How to configure processes and threads of WSGIDaemonProcess directive for the optimal performance of apache 2.4.9
-1
votes
1answer
658 views

503 errors on Apache+Mod_wsgi+Django

I'm new to Python and trying to setup Django on my VPS that is running CentoOS 6.5. My Apache version is 2.2.15. Python is running on version 2.7. I created a virtualenv under ...