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

trouble deploying django under apache on centos with mod_wsgi

EDIT 2: I got this running mostly! It was indeed a SELinux issue. So most things work, I get a cannot write to a read only database error. And some of my things that seem like static are not ...
1
vote
1answer
13 views

Serving Flask + Apache + WSGI Behind Sonicwall

Strange problem here. I've gone through this tutorial on setting up a deployment environment for a Flask app. When I navigate to the servers local IP address it is serving everything fine. However ...
0
votes
1answer
28 views

mod_wsgi app in two different ports

I have a WSGI app working in prod and I want a staging app in the same server, So I configured two virtual hosts in different ports, 80 for prod and 9090 for stag, but every time I request port 9090 ...
0
votes
0answers
34 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
1answer
45 views

Flask with python 3.5

I'm trying to run a flask app on my aws ec2 instance. I've installed anaconda with python 3.5. In order to install mod-wsgi I run the following command: sudo yum install libapache2-mod-wsgi ...
0
votes
0answers
18 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
17 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 ...
1
vote
0answers
108 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 ...
0
votes
0answers
39 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 ...
1
vote
0answers
54 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
votes
1answer
39 views

Apache Error (AH01276), Cannot serve directory /var/www/project/:

I am trying to deploy a Django web app on a newly installed centos7 server. for this i am using apache2.4 with mod_wsgi. i am stuck at serving the static files and because i am new to this, this is ...
0
votes
0answers
48 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) ...
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 ...
0
votes
0answers
27 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 ...
1
vote
0answers
17 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 ...
0
votes
0answers
34 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
50 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 ...
-2
votes
1answer
121 views

Serving a Python Page with Windows / Apache / Mod_WSGI?

I'm trying to setup python / apache / WSGI on windows. I have the following installed, all 32-bit and vc9: Apache 2.4 Python 2.7.9 Mod_WSGI.so in the modules folder. http://localhost/ Displays ...
0
votes
1answer
45 views

Why is method that uses gevent in a mod_wsgi deployed Flask api raising error about switching threads?

I am trying to deploy a Flask api via Apache/mod_wsgi. The api uses Gevent to provide concurrency for a recursive method. However, it is throwing the following error [Mon Feb 08 12:05:37 2016] ...
3
votes
1answer
329 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
46 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
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
92 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
2answers
264 views

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 ...
0
votes
0answers
78 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 ...
1
vote
1answer
327 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
73 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
76 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
69 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
174 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
81 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
217 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
214 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
195 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
567 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
107 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
58 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
3k 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
133 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
251 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
776 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
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 ...
1
vote
1answer
127 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 ...
1
vote
0answers
184 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
756 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
179 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
286 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
2k 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 ...