All Questions
13
questions
3
votes
1
answer
2k
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 ...
2
votes
2
answers
1k
views
Why is Apache2 not finding my WSGI app?
In my previous question, I asked how to make mod_wsgi use a specific Python version. Following the answer from that question, I created a Python 3.9 virtual environment and made WSGI use it. However, ...
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:
...
1
vote
1
answer
727
views
Running multiple flask applications with different domain names using mod_wsgi
We are trying to run 2 different flask applications with different domain names from same server using mod_wsgi + Apache2.
This is the settings configured in httpd.conf
# For www.yyy.com
...
1
vote
1
answer
5k
views
Import Error on deploying a flask app on apache
I am trying to deploy a flask app on a VPS using WSGI. I am not using a virtualenv, and pandas is installed on the system:
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
...
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
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
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
1
answer
98
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 ...
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-...
0
votes
0
answers
337
views
mod_wsgi LoadModule for Python3 is ignored
Trying to configure apache with mod_wsgi and Python3
mod_wsgi config
LoadModule wsgi_module /etc/httpd/mod_wsgi/mod_wsgi-py36.cpython-36m-x86_64-linux-gnu.so
Flask App config
WSGIScriptAlias /...
0
votes
1
answer
416
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
0
answers
2k
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 ...