Questions tagged [mod-wsgi]
mod_wsgi is an easy to use Apache module that can host Python web applications which support the Python WSGI interface.
101
questions with no upvoted or accepted answers
4
votes
0
answers
3k
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 ...
3
votes
1
answer
292
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 (...
3
votes
1
answer
3k
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 ...
3
votes
0
answers
689
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 ...
2
votes
0
answers
2k
views
Timeout when reading response headers from daemon process. Python, Flask, Apache
I have a problem with my mod_wsgi configuration. Sometimes, I think when there is a lot of traffic on my website, the page breaks and says "Resource temporarily unavailable..."
Apache logs:
...
2
votes
1
answer
1k
views
Apache2.4 + Python 3.7 + mod_wsgi not executing script
I have installed Apache 2.4 (vc15 apacheLounge) and Python 3.7. I installed the mod_wsgi using PIP and everything appears to be setup correct in the Apache server.
error.log from apache:
[mpm_winnt:...
2
votes
2
answers
9k
views
Error when trying install mod_wsgi using pip
When trying to install mod_wsgi using pip as follows:
pip install mod_wsgi
I get the following error:
4m.so -L/usr/local/lib -L/usr/local/lib/python3.4/config-3.4m
-lpython3.4m
/bin/ld: /...
2
votes
1
answer
2k
views
HTTP 503 errors with Apache and mod_wsgi
I have written a webapp in Django that I host under Apache 2.4 using mod_wsgi.
At first glance, it works fine. However, when the Apache process has been running for a while, the webapp starts ...
2
votes
0
answers
389
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 ...
2
votes
0
answers
581
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
2
votes
0
answers
2k
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 /...
2
votes
1
answer
963
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
1
answer
320
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....
2
votes
2
answers
266
views
How to manually start and re-start Apache with mod_wsgi powering a password protected Python WSGI app?
I'm working on a project where I have to meet some regulatory requirements that require at least 3 out of 5 authorized users to start a backend web service that handles very sensitive information ...
2
votes
1
answer
3k
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
...
1
vote
0
answers
52
views
Determining which Mercurial version which created a repository
I have a rather large Mercurial web server (ie. running under hgweb.wsgi) that's outgrown the distribution it was built-on... which basically means that I've already started doing upgrades of Python, ...
1
vote
0
answers
92
views
Unsuccessful flask app deployment on Amazon EC2 instance
I am trying to deploy a flask app on an Amazon EC2 instance. I have configured everything just fine but the website does not load. It remains stuck on the loading icon as follows:
Website not loading
...
1
vote
0
answers
477
views
How to debug my config file for wsgi
I am trying to install a server for inginious (a program for automatic grading). One step in the installation is configuring Apache2 to use mod_wsgi. Here is the configuration file inginious.conf:
<...
1
vote
0
answers
1k
views
Apache Server Error: ImportError: No module named site
I am trying to serve my django project over Apache using mod_wsgi. Apache will start but my project in inaccessible. When Apache launches I see ImportError: No module named site in the log. There is ...
1
vote
0
answers
356
views
Flask app to upload an image file via Apache 2 not working
Running Apache/2.4.41 on Fedora 30 and python3-mod_wsgi-4.6.4-3.fc30.x86_64. And doing a test with: mod_wsgi-express start-server /var/www/flask/upload_pictures.wsgi --user myuser works mostly fine ...
1
vote
0
answers
2k
views
Error Deploying Django web using mod_wsgi (Forbidden: You don't have permission to access / on this server.)
Hello I'm trying to deploy my first Django website using Apache inside of Centos7
Versions:
Apache: 2.4.6
Django: 2.2.6
Python: 3.6.8
My Django project is located inside the /srv directory and ...
1
vote
0
answers
193
views
How to run more than one django sites using same virtual environment as subdirectories in apache?
I have an unmanged vps. I have 3 django sites sitename_dev, sitename_staging, sitename_live which are run using a virtual env. All 3 are default django instances with no changes made. I have ...
1
vote
0
answers
415
views
Getting Mod_WSGI Error: Deploying Flask Application to ElasticBeanstlk
I am current trying to deploy a Flask Application (an API Application) onto Elastic Beanstalk. But I am getting mod_wsgi error.
Here is the error message:
[Fri Jun 01 06:10:49.314023 2018] [:...
1
vote
0
answers
151
views
Apachi httpd hangs on linux servers
In the last few months we're experiencing a major issue in our production php servers:
The httpd running on our linux servers hangs and not responding to new requests (up to request timeout) until we ...
1
vote
0
answers
408
views
Apache ignores WSGIScriptAlias if same directory exists in root
I notice a peculiar error when serving Django app through mod_wsgi.
In my document root, I have /admin directory that is restricted to 127.0.0.1 using LocationMatch directive. I also have /admin ...
1
vote
1
answer
826
views
Apache with mod_wsgi - how to reject requests if all threads are busy?
We have a server that is running Apache and one of the vhosts is using mod_wsgi to run a heavy task on request. The server can handle X requests at a time and each of them will run for ~10 minutes. ...
1
vote
1
answer
2k
views
Django 1.10.3 Apache wsgi - ImportError: cannot import name signals
Overnight django stopped working, possibly because of an automatic package upgrade on the server. Its wsgi script now fails to load in production, but running the development server works fine. What ...
1
vote
1
answer
673
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 python-...
1
vote
0
answers
2k
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
0
answers
71
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
0
answers
158
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
2
answers
2k
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 ...
1
vote
1
answer
950
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
0
answers
25
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
1
answer
363
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 ...
1
vote
1
answer
547
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 /usr/libexec/apache2/...
1
vote
1
answer
2k
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
vote
0
answers
2k
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 ...
1
vote
0
answers
660
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
0
answers
2k
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
0
answers
99
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
1
answer
870
views
Apache2/mod_wsgi mod_headers issue
I'm running mod_wsgi on Ubuntu Server 12.04 with Django, but I can't seem to get mod_headers working. I've run a2enmod headers, and got the response that I need to restart apache for it to work, which ...
1
vote
2
answers
665
views
django + apache2, each user takes up a lot of memory
I'm running my django app on apache2 (with mpm prefork) with a mysql database. It works fine, except when multiple users use it, and it takes around 40-45m RES for each user.
httpd.conf:
...
1
vote
1
answer
73
views
Closing open descriptors in apache2 prefork
I am running mod_wsgi and Django on apache2 httpd 2.2.12. I do quite a few os.system() and subprocess.Popen() calls, and was wondering: is there any option/directive to configure apache2 so that the ...
1
vote
1
answer
2k
views
Restarting or stopping apache results in waiting forever
I have two simple WSGI apps running on top of mod_wsgi and apache2 (worker) on a test development server. There is no mod_python on this machine.
The WSGI configuration is as follows
...
1
vote
0
answers
197
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
0
answers
611
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
0
answers
268
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
1
answer
2k
views
hosting static files with mod_wsgi
I've followed Graham's simple configuration instructions for hosting static files along with a wsgi application mounted at the domain root. And in fact, my site is working.
However, requests for ...
1
vote
0
answers
364
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 ...