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

Are there any step by step tutorials to install django, mod_wsgi on redhat 7? [on hold]

I cannot find any tutorials for installing a complete django environment on Redhat 7. Specifically I am having problems with installing: mod_wsgi Is there a reason that there is nothing on the ...
1
vote
2answers
23 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
0answers
15 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 ...
0
votes
0answers
54 views
+50

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
34 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
32 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
14 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
28 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 ...
0
votes
0answers
52 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
167 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
61 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
171 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
84 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
81 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
13 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
33 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
0answers
20 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
214 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
365 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
157 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
167 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
52 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
245 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
0answers
243 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
31 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
66 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
935 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
64 views

Why use daemon mode of mod-wsgi with apache mpm-worker

I am trying to tune my server which hosts a django app using mod-wsgi on an apache web server. I have been reading some resources on using mod-wsgi with apache2 and beyond a certain point things are ...
0
votes
1answer
439 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
435 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
79 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
237 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 ...
0
votes
2answers
67 views

Cent OS + Apache2 + mod_wsgi error

I have a development server for my Django application running Cent OS 6. I'm serving the application using Apache and mod_wsgi. I read a lot about the default Python that comes with Cent and so I ...
2
votes
2answers
104 views

Setup Apache + mod_wsgi: incorrect function

I'm trying to setup an apache http server with mod_wsgi on a windows machine, but when I start the service, it fails to launch. In the Windows Event Log I get the following message: The Apache2 ...
0
votes
0answers
405 views

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 ...
2
votes
1answer
49 views

Does mod-wsgi automatically spin up again when apache restarts?

I was reading through here: https://code.google.com/p/modwsgi/wiki/ReloadingSourceCode We have a python app hosted over a wide array of load-balanced servers, and sometimes it takes a long time for ...
0
votes
1answer
551 views

mod wsgi picks up wrong libpython2.7.so.1.0

I've compiled python 2.7.8 with: mkdir -p /usr/local/python2p7/lib ./configure --prefix=/usr/local/python2p7 --with-threads --enable-shared LDFLAGS="-Wl,-rpath /usr/local/python2p7/lib" make make ...
0
votes
0answers
121 views

Server configuration in production for Django applications

I want to deploy my Django project to production as follows: example.com # redirect to www www.example.com # for dynamic files static.example.com # for static files media.example.com ...
0
votes
0answers
334 views

Serving static files through apache

I am new to the whole mod_wsgi and serving files through apache. I am really comfortable with flask but this is something i can't get my head around. I did the hello-world program and successfully ...
0
votes
1answer
69 views

configured apache to host pyramid app, but restarts dont show changes

I have a pyramid application that I want to host using Apache. I started off by sucessfully getting a blank application to run - I used pyramid's starter scaffold to create a basic app then I ...
0
votes
0answers
81 views

Serving two WSGI applications on the same port using Apache

I need to configure an Apache webserver so that it will serve two different WSGI based applications on the same port (I have access to just a single port, namely port 80). On the users end they should ...
2
votes
2answers
179 views

What are the problems of setting MaxRequestsPerChild to 1 of mpm_prefork module

For my application I had to have this configuration for it works : <IfModule mpm_prefork_module> MaxRequestsPerChild 1 </IfModule> What are the problem that I can encounter with ...
0
votes
1answer
212 views

Configuring Apache with Django

I'm trying to configure Apache with Django. Everything is working except the admin panel. It's static files are not loading. The documentation talks about different ways of doing it but none are ...
0
votes
1answer
329 views

Django, Ubuntu, Apache, mod_wsgi

I'm trying to configure apache with django on Ubuntu 12.04. I'm using mod_wsgi. I used a couple of different tutorials but none of them fully worked for me. Frustrated, I installed nginx without ...
0
votes
1answer
284 views

Apache and mod_wsgi, worker process stuck to W state, request never dies. How to diagnose?

I am running Apache 2.2 with mod_wsgi, Python 2.7 and mpm_worker. Occassionally, one of the worker processes gets stuck and all of it threads stop in writing state (as demostrated in the screenshot ...
0
votes
1answer
101 views

Error starting mod_wsgi

When I run the start-server command on mod_wsgi-experess, I get this output: Server URL : http://localhost:8000/ Server Root : /tmp/mod_wsgi-localhost:8000:0 Server Conf : ...
1
vote
1answer
1k views

Multiple python versions under apache+mod_wsgi

I have several virtual hosts configured under the same apache instance on redhat: apache-2.2.15 mod_wsgi-3.5 compiled with default system python-2.6 For every virtual host WSGIScriptAlias setting ...
1
vote
2answers
737 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
1k views

Enabling SPDY for nginx as reverse proxy to Apache

I am running nginx as a reverse proxy to apache (with mod_wsgi for a django app). nginx also serves static files. If I enable spdy on nginx, do I need to enable spdy on apache too to get maximum ...
0
votes
3answers
460 views

Apache: 403 Forbidden for WSGIScriptAlias

I am trying to install istSOS following these instructions from the website: Installation Install PostgreSQL $ sudo apt-get install postgresql postgresql-client postgresql-contrib pgadmin3 ...