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

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

Python and mod_wsgi path issue

I have an AIX 6.1 system that I've compiled and installed: Apache 2.2.21 (into /usr/local/mercurial) Python 2.7.2 (into /usr/local/bin and /usr/local/lib) mod_wsgi 3.3 (with the AIX fix #1 described ...
2
votes
1answer
268 views

speeding up django server

My setup is django 1.3 and the default mod_wsgi and apache packages for ubuntu 10.04. I tested one view of my app on my development VM (DEBUG and debugging toolbar off): ab -n 200 -c 5 http://127.0.0....
1
vote
1answer
234 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 ...
1
vote
1answer
214 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
1answer
132 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 ...
6
votes
0answers
1k views

Incorrect deployment of WSGI app to AWS using Elastic Beanstalk

cross-link to AWS forums I have developed a simple Python web service using WSGI and would like to deploy it to AWS cloud using Elastic Beanstalk. My problem is I cannot make all the options I ...
4
votes
0answers
817 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 ...
2
votes
0answers
677 views

WSGI/APACHE - “ImportError: No module named site”

I am trying to get a django website up and running using WSGI. The box is running centos 5 with python 2.6. I am attempting to use the anaconda distribution from continuum analytics installed in /...
1
vote
0answers
127 views

Django Site with httpd and mod_wsgi: 403 Forbidden

I've spent the whole day trying to find an answer to my issue, yet I failed and decided to post my problem here instead. So I have develop a Django Application and now I'm having problems in deploying ...
1
vote
0answers
73 views

504s on Elastic Beanstalk app deploy (user -> ELB -> Elastic Beanstalk mod_wsgi)

I have a Python Elastic Beanstalk load-balanced app. Here is the path a user request takes on its way into the Elastic Beanstalk app: user -> Elastic Beanstalk ELB -> Elastic Beanstalk mod_wsgi ...
1
vote
0answers
19 views

urllib3 failure through Apache/WSGI; successful from python commandline

I have a webserver serving Django through Apache 2.4 with mod_wsgi and Python 2.7 on Ubuntu 14.04. When first setup, outgoing connections from this webserver using the Python library urllib3 were ...
1
vote
0answers
25 views

Issues with URL length in Apache/mod_wsgi

I have a python wsgi API in which I process incoming URL payloads of varied length. I believe, but am not absolutely sure, that I may have run into a limitation of URL size. For a particular payload (...
1
vote
0answers
74 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 ...
1
vote
0answers
192 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 ...
1
vote
0answers
19 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: centos.serverspace.co....
1
vote
0answers
130 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
vote
0answers
541 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 ./...
1
vote
0answers
891 views

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 ...
1
vote
0answers
84 views

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 ...
1
vote
0answers
478 views

NGINX and OpenStack Horizon?

I recently update our web infrastructure to use NGINX instead of our Apache servers. Now, I'm also operating an OpenStack Infrastructure and I was wondering if there is a state of the art way to ...
1
vote
0answers
107 views

Modifying httpd.conf to adjust for mod_wsgi and django install then cannot connect via sftp

I modified my httpd.conf file to point to a .wsgi file that I made directing apache to different document root. The server works fine, I see my application live on the net and I am still connected via ...
1
vote
0answers
179 views

Apache will not start with mod_wsgi enabled

I'm trying to run Apache with mod_wsgi to run Python scripts. The server is running Ubuntu 12.04 with Zend Server installed, but when I enable the wsgi module Apache will not start. I get an error ...
1
vote
0answers
240 views

Bottle.py application times out on mod_wsgi and uwsgi but works in dev mode

I have a bottle.py application that performs well in dev mode. However, a function that has a larger database query is causing the app to time out when run in either uwsgi or the browser to time out ...
1
vote
0answers
244 views

Apache conf changes when migrating django project from mod_python to mod_wsgi

Not sure if this is the right place to ask this question, but I'm migrating a django project from mod_python to mod_wsgi and I want to make sure I have my apache configuration correct. The old ...
1
vote
0answers
81 views

Server returning response for previous requests

It's a really strange problem. I believe it to be a server issue, but it's so strange and hard to reproduce that I'm not entirely sure. Just as the title says I'm receiving responses for earlier ...
1
vote
0answers
156 views

Django - can't get production web server running

I'm trying to deploy a Django app in production, on an apache server, using mod-wsgi. mod-wsgi is installed and working fine. When I run the Django server, it launches fine, but I can't access it on ...
1
vote
0answers
119 views

Shell Script to deploy Django

I have yet to find an Amazon Web Services AMI that deploys a Django environment. I want to deploy with mod_wsgi and also include modules like markdown, lxml, beautiful soup, PIL, and others. Is ...
0
votes
0answers
55 views

How can I create a django project as a subfolder inside an existing VirtualHost?

I am trying to set up a django project to use a non-root Domain as I am hoping to share a PHP site's cookies with django. After my first attempt this is what I see when at http://localhost/workflow ...
0
votes
0answers
18 views

Deploying django on mod_wsgi

The problem: I get 404 error when trying to reach localhost:80. [root@alarmpi public_html]# tail -n 1 /var/log/httpd/error_log [Sat Jun 04 23:09:50.235251 2016] [wsgi:error] [pid 2323:tid 1973417008]...
0
votes
0answers
10 views

DLL Load Fail on Apache x64 Server Running

I am transferring a Django and Mapserver project from a Windows 7 machine to a Windows Server 2012 R2 machine (never worked on server environments). I have a single version of 64-bit python installed ...
0
votes
0answers
70 views

Could not find platform independent libraries <prefix> after recompiled mod_wsgi

I am on centos 6, while I need python 2.7 for some reason. And I recompiled mod_wsgi for python2.7, then add python2.7 shared library path to /etc/ld.conf, then ldd, it works fine and the log shows me ...
0
votes
0answers
22 views

Django deployment: configuring correct python to be used by apache/mod_wsgi

I am new to working with Django based applications and trying to deploy a django project using following configurations, which are almost similar to the default given on django docs. apache2.conf # ...
0
votes
0answers
19 views

WSGI socket errors with Trac install - (prefork, not ITK)

I am trying to run Trac using Apache 2.2.15 and mod_wsgi 3.2 (prefork). I am having the same socket problem described here: WSGI says "permissions denied" on my Ubuntu server, no ...
0
votes
0answers
61 views

web2py running mod_wsgi on Apache - “ImportError: No module named site”

Im having problem to run web2py on apache. OS is CentOS Apache 2.4 Python is installed in /usr/lib/python2.7/ defualt.conf looks like: NameVirtualHost *:80 NameVirtualHost *:443 <VirtualHost ...
0
votes
0answers
61 views

Python/Django/WSGI/Apache webserver gateway timeout with outgoing SSL connections with urllib2/urllib3/requests

I have a webserver serving Django through Apache 2.4 with mod_wsgi and Python 2.7 on Ubuntu 14.04. Outgoing connections with any of urllib2, urllib3, or requests, connections to non-SSL (on port 80) ...
0
votes
0answers
28 views

application's stdout to NginX's error_log - same as mod_wsgi

I have Django project served via Apache (mod_wsgi) - recently switched to NginX + uWSGI. Currently I have it served via both at different ports to benchmark the overall performance gain. One issue I ...
0
votes
0answers
37 views

python server running but nothing in web browser

I have python server running in terminal but I don't get anything in my web browser, beside it, below is written django 1.8.3 but I made upgrade to django 1.9.2: (env)root@mx:/srv/mercury# python3 ./...
0
votes
0answers
57 views

Apache SSL mod_wsgi only getting directory listing

I'm trying to setup SSL with Apache and mod_wsgi (flask app). The http version of the site works fine, and I've tried duplicating the virtual hosts section minus the WSGIDaemonProcess statement, plus ...
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
64 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
108 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. ...
0
votes
0answers
91 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
0answers
77 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 I'...
0
votes
0answers
67 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 ...
0
votes
0answers
969 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 ...
0
votes
0answers
54 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
1k 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 ...
0
votes
0answers
615 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 ...
-1
votes
0answers
7 views

Django runs with manage.py runserver, but not within mod_wsgi on CentOS7-minimal

I managed to run my django project with manage.py runserver command, but having issue to run it within mod_wsgi. Here is traceback I got in apache error log file: mod_wsgi (pid=9357): Target WSGI ...