3,230 questions
0
votes
0
answers
37
views
Cannot find settings module in mod_wsgi (Apache2 on Ubuntu with django)
I am serving a Python app using Django through an Apache2 server. I have the wsgi.py file in a directory
home/peter/django-apps/anaaccess/anaaccess/ana_access/wsgi.py
I have a venv in home/peter/...
0
votes
1
answer
43
views
Django/Apache/mod_wsgi Deployment Issue: Internal Server Error & Redirect Loop on cPanel (AlmaLinux 9)
I'm an intern trying to deploy a Django application on a cPanel server, and I've run into a persistent "Internal Server Error" coupled with an Apache redirect loop. I've been troubleshooting ...
0
votes
0
answers
9
views
mod_wsgi referer in logs
Version: python3-mod_wsgi-4.7.1-11.el9.x86_64
What is this "referer" in Apache logs? Of course referer per se is old Apache log information which points to the previous URL/page, but why it'...
1
vote
1
answer
33
views
mod_wsgi doesn't output exception traceback to the httpd error log
Platform:
httpd-2.4.62-1.el9_5.2.x86_64
python3-mod_wsgi-4.7.1-11.el9.x86_64
python3-3.9.21-1.el9_5.x86_64
httpd settings:
WSGIDaemonProcess server.example.com \
processes=2 \
...
0
votes
0
answers
10
views
Apache removing spaces before slashes in the PATH of an URI
I cannot find it anywhere, nor in the source code of Apache nor on any page references for this happening, but somehow Apache normalizes URIs
from
http://example.com/my/page /with/space
into
http://...
0
votes
0
answers
19
views
Apache server creating to wsgi app processes after a reload
I currently have a configuration for a site running on Apache in Raspberry Pi, it is for a Flask App using the apache WSGI module. The intention is to have a single process, the need for a single ...
0
votes
0
answers
30
views
Ubuntu + Apache (mod_wsgi) + Django - HTTPSConnectionPool NewConnectionError - [Errno 111] Connection refused
Environment:
Ubuntu 24.04, Apache 2.4 (+ libapache2-mod-wsgi-py3 5.0.0-1build2), Python 3.12 (+ requests 2.32.3), Django Admin 5.1.6
Error:
I have connected a Django project through Apache (mod-wsgi) ...
0
votes
2
answers
216
views
too many redirects error, mod_wsgi apache and django (python-venv)
I have a problem, with django and apache (mod_wsgi), I get the browser error "too many redirects".
Here my files and apache configuration
project tree
├── db.sqlite3
├── djangoProject
│ ├──...
1
vote
1
answer
35
views
Apache mod_wsgi flask application using global jinja2 package instead of the one installed in the virtual environment
I am configuring a Flask Application on a Debian 12 server, which is supposed to run with python 3.6.9 and Jinja2 Version 3.0.3 in a local venv. But instead of using it, it seems to access the global ...
0
votes
0
answers
23
views
mod_wsgi can't find MOD_WSGI_APACHE_ROOTDIR, even though I set it
First, I'm new to python. I have two files I want to see working in a browser, and one file is python.
I have XAMPP installed on my windows 10 laptop. The path to XAMPP is C:\Users\Owner\Desktop\...
0
votes
0
answers
24
views
Run Flask app in a sub-directory with error log and WSGI Process Group
I try to migrate a Flask app from an Ubuntu 22.04 server (originally it is configured as a Virtual Host) to RHEL 9.4 server (as a sub-directory script), both running Apache web server and having WSGI ...
0
votes
1
answer
59
views
experiencing intermittent apache error AH01630
We have two different django apps running on a server (Centos7), using django manage.py runmodwsgi (python module mod_wsgi). Both apps are running fine, and have been for a few years. The odd thing we ...
0
votes
1
answer
46
views
Can't get Django-CMS to work with Apache and mod_wsgi
I am trying to get django-cms to run with apache wsgi. I am using Python 3.12 and the latest version of all software (a fresh bare metal install of ubuntu 24.04). Django-cms runs with runserver.
My ...
0
votes
0
answers
37
views
Flask App Randomly Restarting When Running with Apache and mod_wsgi
I'm having an issue with a Flask application that I'm running using Apache and WSGI on a Raspberry Pi. The application restarts intermittently, and it seems that Apache is restarting the application ...
0
votes
1
answer
49
views
How to debug segfault and mod_wsgi conda/mamba environments?
I have tried in vain to get core dumping and gdb to work, but cannot seem to get a core to dump or gdb to find the symbols it needs. So here's the gist of everything happening.
I have installed ...