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
6 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
1answer
32 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
43 views

mod_wsgi in daemon mode apache 2.4 with virtual hosts

I am trying to get mod_wsgi in daemon mode working on apache 2.4. On my old apache 2.2 everything works well. On Apache 2.2 I have this addition to every virtual host: WSGIDaemonProcess myuser ...
0
votes
0answers
12 views

wildcard subdomain with mod_wsgi + apache

I've created a wildcard subdomain using cpanel and attempting to point all sub domains to a particular .wsgi file. <VirtualHost my.server_ip.address:9999> ServerName _wildcard_.domain.tld ...
0
votes
0answers
52 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
17 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
29 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
205 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
44 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
399 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 ...
-1
votes
1answer
151 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
59 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
102 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
53 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
65 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
201 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
36 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
305 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
109 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
188 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
45 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
60 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
156 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
123 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
151 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
170 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
81 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 : ...
0
votes
1answer
607 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
442 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
746 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
352 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 ...
0
votes
1answer
70 views

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

Apache CustomLog for WSGI server is not filtered by LogLevel

I have a WSGI server which is served by an Apache proxy. I would like to have a log file dedicated to that server, so I added the following to the VirtualHost declaration: LogFormat "%h %l %u %t ...
2
votes
1answer
320 views

Is graceful restart of Apache forcing to reload all python modules handled by mod_wsgi?

If I want to be sure that all python modules are recompiled and reloaded in my Django project under mod_wsgi and Apache, is it enough to restart apache gracefully with: /etc/init.d/apache graceful ...
0
votes
1answer
45 views

How do I tell what request a mod_wsgi process is serving?

Occasionally, I get an apache process running at 100% CPU. I've tried letting it run it's course, but I've seen it go more than half an hour without giving up. My running hypothesis is there is an ...
0
votes
1answer
405 views

Apache Processes in top more than MaxClients

We have Apache running with the worker MPM and have MaxClients set to 6, yet when I open up top I can see more than 6 Apache processes running. 13 visible in the screen dump below. Can someone explain ...
1
vote
1answer
549 views

Why does httpd seem to use a different version of python with the same executable?

I am running Apache httpd 2.4.4 on a RedHat 5 machine. I am using Django and running through mod_wsgi. I have Python 2.4.3 installed in /usr/bin and Python 2.7.6 installed in /usr/local/bin and I want ...
0
votes
1answer
47 views

Using Apache to make a virtual host with the same domain name?

I'm sure there's a name for this and I'm probably just searching wrong. Anyways, is it possible to set up virtual hosts on the same domain name by using information after the '/' For example host1 ...
0
votes
1answer
52 views

Need Server requirement estimates for my application [duplicate]

I am a newbie to Web Development and am trying to estimate the server requirements based on my application configuration. My application will have to perform simple database look-up based on unique ...
2
votes
1answer
1k views

How can I make apache give the config file path and line number for a 403 error

I'm running Apache 2.4.7 on debian unstable. I'm getting 403 errors when I try to run supysonic using the mod_wsgi module. I turned the LogLevel for wsgi and authz_core up to trace6, but I'm still ...
2
votes
1answer
562 views

Running multiple Django projects within Apache, sys.path being over written

I have been trying to research how to do a multiple Python / Django deployment using Apache VirtualHosts. The issue I am encountering seems straight forward, ImportError: Could not import settings ...
0
votes
1answer
744 views

Target WSGI script not found or unable to stat [closed]

This problem has tortured me for days. I am using Apache, WSGI and django on my Raspberry Pi. Operating system is Raspbian. Everything is okay except this error from apache. [error] [client ...
1
vote
1answer
369 views

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 ...
3
votes
1answer
322 views

Django + Apache + mod_wsgi: Why is wsgi script executed multiple times?

I'm relatively new to all the server technology and I followed this tutorial to deploy my django app on an Apache Webserver, using mod_wsgi: ...
1
vote
0answers
322 views

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

Can I configure apache/mod_wsgi so that the Alias URL path is not stripped before it reaches my Django app?

I am trying to configure Apache to host a Django webservice and a PHP website. All URLs with the pattern www.mysite.com/api should be directed to the Django service. All other URLs (e.g. ...
0
votes
1answer
234 views

How to have PHP and mod_wsgi python app on the same domain?

I am using apache with mod_wsgi (python3) on ubuntu 12.04. I have a python app (bottle) which is at www.mysite.com/ In my python app I have routes like www.mysite.com/abbb?q=blab I would like a ...
1
vote
1answer
447 views

apache pointing to the wrong version of python on ubuntu how do I change?

I am setting up a flask application on and Ubuntu 12.04.3 LTS EC2 instance and everything seemed to be working well (i.e. I could get to the webpage via the publicly available url) until I tried to ...
0
votes
2answers
105 views

How to choose a web server for a Python application? [closed]

Information and prerequisites: I have a project which is, at its core, a basic CRUD application. It doesn't have long running background processes which it forks at the beginning and talks to later ...
0
votes
2answers
647 views

Configure mod_wsgi WSGIScriptAlias with mod_rewrite

I want to redirect ex.com to www.ex.com but I still want www.ex.com/ to point to my app.wsgi without it showing up in the url. When I use the conf below and I go to ex.com, I get a 404 error saying ...