Questions tagged [mod-wsgi]

The mod_wsgi module is a python WSGI adapter module for Apache.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
16 views

Failure to setup nginx reverse-proxy in front of Apache WSGI application [closed]

I have an Apache(2.4.29)/WSGI application running on Ubuntu 18.04. This application currently has 2 VirtualHosts configured. Here is app config ExpiresActive On <VirtualHost *:80> ...
jlrivera81's user avatar
0 votes
0 answers
25 views

Flask app in apache environment creating duplicate log entries and escalating db conns

I have a python flask app which uses SQLAlchemy and flask-sqlalchemy. In the dev environment I use the built-in flask server connecting to a local postgres 14 db. The staging environment uses apache ...
Momus's user avatar
  • 394
0 votes
1 answer
36 views

No module found [my_app] with Apache and mod_wsgi

This is my directory structure, in /var/www: team_django --team_db ---- __init__.py -----settings.py -----wsgi.py My wsgi.py: import os from django.core.wsgi import get_wsgi_application os.environ....
HBMCS's user avatar
  • 708
0 votes
0 answers
34 views

about mod_wsgi ModuleNotFoundError (dateutil) // python 3.11.4 64bit and apache 2.4.58 win64 VS17

I'm using mod_wsgi with python 3.11.4 64bit and apache 2.4.58 win64 VS17 on windows 11 pro. And I install python for everyon not just for me. In addition I do not use python virtualenv. When I run ...
student's user avatar
  • 18
0 votes
0 answers
16 views

deployed django webpage using apache and mode_wsgi doesnt show other pages aside from index.html

I am totally new to the world of Django, I recently tried to deploy my website on production server and I have been successful to some extent. I deployed the website on a windows base VPS, using ...
bahar bendokht's user avatar
0 votes
0 answers
37 views

Apache mod_wsgi ModuleNotFoundError: No module named 'select'

I am trying to set up an apache 2.4.57 server for a flask app (python ver 3.11.1) on windows 10. When I run httpd.exe and navigate to the relevant localhost page I get an internal server error. ...
Victoria walker's user avatar
1 vote
1 answer
93 views

Run ASGI Application with FastAPI inside a Jelastic PaaS Environment using mod_wsgi

I want to use FastAPI inside my python project, I want to deploy it on a Jelastic PaaS. Apparently mod_wsgi manages only WSGI application so I was trying to run an ASGI application inside a WSGI ...
madx's user avatar
  • 6,773
0 votes
0 answers
20 views

wsgi_mod is just showing my .py code instead of running it

I am in a python class and we are currently working with servers, with apache and wsgi_mod. When I start it, the apache shows the code but nothing else, it doesn't execute and it doesn't show errors, ...
Sebastián MB's user avatar
0 votes
0 answers
15 views

How to run the flask program from under root (apache2 wsgi)

I wrote a python program, it works fine if I run it on my computer, but I run it from under app.run(), that is, the user who enters python3 main.py.. But I put it on the server (apache2) and it works ...
Андрій's user avatar
0 votes
1 answer
13 views

Mod-wsgi calls flask factory function twice

I am trying to build a flask app and using mod_wsgi server for hosting. I use a factory function to create the flask app but I observe that mod-wsgi calls the factory function twice within the same ...
Kevin123's user avatar
0 votes
0 answers
8 views

Django with multiple websites, shared apps, one domain, Apache server

The goal is to have several websites running on one domain, with Apache and wsgi What I currently have is one virtualhost configuration: WSGIScriptAlias /site1 /opt/django/wsgi.py process-group=site1 ...
rosch's user avatar
  • 677
0 votes
2 answers
27 views

couldn't serve static file for a django app (apache - wsgi )

i have the projected is named Portfolio which is my main page. And i have created an app named experiences on this project. On dev server i'm able to serve static files for both. but on production, i'...
MEZIANE Yacine's user avatar
0 votes
1 answer
82 views

I got error on apache2 server django application Failed to proxy response from daemon

The website works fine only for 1-2 requests, after which it starts loading endlessly and if I wait for some time I get an Internal Server Error. After this i reload the server sudo systemctl reload ...
Али Зейналов's user avatar
0 votes
0 answers
22 views

Problems installing mod_wsgi in windows. RuntimeError: No Apache installation can be found

I'm trying to deploy a Django project window with XAMPP, but I'm getting this error at the stage of installing mod_wsgi: RuntimeError: No Apache installation can be found. Set the ...
Tinashe Mphisa's user avatar
1 vote
1 answer
64 views

How to handle wsgi-based server starting multiple processes that writes to the same file causing data loss?

I have a Flask web application that writes multiple CSV files with headers periodically every two minutes and this works fine when I run it with the Flask development server. However, I recently ...
Kevin123's user avatar
0 votes
0 answers
18 views

Flask App sometimes restarts under mod_wsgi/apache, but not under development server

My Flask application runs fine under the Flask development server. After deploying it to apache2 with mod_wsgi it seems to restart after a short time of beeing inactive. That brings problems with ...
Ulrich Goebel's user avatar
0 votes
0 answers
24 views

ModuleNotFoundError: No module named 'encodings' when using Apache and ModWSGI in CentOS 8

I have a Flask application that I want to deploy using Apache/ Httpd in CentOS 7. I have developed a Virtual Environment for the project and when I use the development server to run the project, ...
Terminator10's user avatar
0 votes
0 answers
24 views

How do depoy a Django Project on a Webgo server

im new to Django i did made a tutorial from w3school, now im at the point to deploy the project but i dont want to deploy the project on my own webhost at Webgo. On the Server there is python and ...
Kaju's user avatar
  • 1
0 votes
0 answers
18 views

flask application "isn't redirecting properly"

I have a domain in which I have successfully launched 7 flask applications. I signed up for another domain. I am trying to launch one application and I am getting: The page isn’t redirecting properly ...
Ray Kiddy's user avatar
  • 3,541
0 votes
1 answer
32 views

Print uid to screen/browser in Python

I'm currently testing mod_wsgi, and trying to print my uid to screen in my browser. import os uid = os.getuid() print("uid being used:", uid) def application(environ, start_response): ...
Ahmad Bilal's user avatar
0 votes
0 answers
180 views

Compiling mod_Wsgi with python 3.11 on Amazon linux 2: fatal error: Python.h: No such file or directory

Full output: In file included from src/server/mod_wsgi.c:22:0: src/server/wsgi_python.h:26:10: fatal error: Python.h: No such file or directory #include <Python.h> ^~~~~~~~~~ ...
Amon's user avatar
  • 2,775
1 vote
2 answers
30 views

Angular Application Rendering Backend Data on Page Refresh While Using Apache Server

I'm trying to deploy a demo Angular Flask Application with Apache. My project directory is /var/www/backend/basicapp/. This directory contains: app.py from flask import Flask, jsonify, render_template ...
AbhirChavan's user avatar
0 votes
0 answers
9 views

I can not find mod_wsgi model in Apache modules environment - Django

I am new to Django and I tried to connect it with Apache through mod_wsgi but it seems new versions of Apache does not support such kind of module. Am I right? Or is there any different way I could ...
Miroslav Ivanov's user avatar
0 votes
0 answers
71 views

Deploying Django on Xampp Apache server in windows gives endless loading in 'localhost' webpage

I am trying to host a django application on Apache server using XAMPP and after going through all the settings necessary for the app to run, the webpage in 'localhost' is loading endlessly, enter ...
Jaya Rathina's user avatar
1 vote
1 answer
19 views

mod_wsgi with two python versions

I have an Ubuntu-18.04 LTS EC2 serving a django application with mysql Ver 8.0.16, Apache/2.4.29 and mod_wsgi/4.6.5complied withpython3.6. Now, I am targeting to deploy a new django application in ...
Balaji Gandham's user avatar
0 votes
0 answers
78 views

Enable datadog tracing for apache wsgi flask app

I have python flask docker app running on apache server with mod_wsgi. I wanted to datadog tracing to the app but I am confused where on entrypoint I should add ddtrace-run command. The only thing we ...
Darshan Patil's user avatar
0 votes
0 answers
100 views

Property Object is not callable with python 3.10 and django 4.1

I am deploying a django application on apache using mod_wsgi. However, I'm getting the following error when wsgi.py is running: File "/home/ubuntu/release/innovate-backend/src/rest_apis/...
Saurabh Verma's user avatar
0 votes
0 answers
21 views

Django app runs fine at first on mod_wsgi Apache2 then stops responding how do I troubleshoot issue

I have not used Django in many years. I recently found a niche to use it, created app, and it runs fine using runserver, no issues. I am trying to set it up to run on Apache stack with mod_wsgi, and ...
Kevin Crowder's user avatar
0 votes
2 answers
143 views

Apache times out when starting and I cannot find any help from error logs

I am running (trying to) apache 2.4 on Rocky Linux 9.3. Here is my httpd.conf file. LoadModule authz_core_module /usr/lib64/httpd/modules/mod_authz_core.so LoadModule wsgi_module /usr/lib64/httpd/...
ottothelord's user avatar
1 vote
1 answer
45 views

Cannot run mod_wsgi correctly in the docker container in Ubuntu VM

First, I installed Docker v4.20.1 in my Windows 10. I can run the web app successfully on my windows docker container environment. But when I try to pull my image and run in the Ubuntu VM(22.04), it ...
firestoke's user avatar
  • 1,051
0 votes
1 answer
58 views

failed to exect wsgi.py (deploy django rest framework on apache2 with mod_wsgi)

I'm trying to deploy django rest framework on apache , and i did configure mod_wsgi with apache and did some changes to settings.py like static files and created virtualhost in apache , but im ...
the_yaz2000's user avatar
0 votes
1 answer
86 views

twilio RequestValidator not working in python wsgi

first time using twilio's RequestValidator. It seems pretty basic so I can't really figure out what this error is though. It looks like some internal error. Traceback (most recent call last): File &...
noone392's user avatar
  • 1,754
0 votes
0 answers
63 views

Giving access to /var/run/apache2/wsgi.xxxx.x.x.sock file

my vps is running webuzo panel i tried installing my python api using the webuzo panel realizing that cant have my way, i'm trying to setup the python api manually if my server is just a normal ubuntu ...
Ahamed Althaf's user avatar
0 votes
0 answers
35 views

Django - [wsgi:error] [pid 16542:tid 140650901133056] Truncated or oversized response headers received from daemon process

I have googled and tried each and every option but nothing worked . Below are the version specification which is used . Apache/2.4.37 (AlmaLinux) OpenSSL/1.1.1k mod_wsgi/4.6.4 Python/3.6 and mariadb ...
Mudit Chouradiya's user avatar
0 votes
0 answers
53 views

How to deploy Flask API using Apache on domain controlled network?

I'm just staring to learn Apache, JavaScript, CSS and Flask and MOD_WSGI for less than a week. I have this simple project to get data from Oracle database by typing a lot number then display the ...
Ken eXs's user avatar
  • 51
0 votes
0 answers
94 views

Numpy error when deploying Flask app in Python 3.9 (linux): No module named 'numpy.core._multiarray_umath'

I'm trying to deploy a flask app on an Azure Ubuntu 20.04 VM (Standard E20as v5) using apache2 + wsgi. The flask app is located at /var/www/html/FLASKAPP.web.tool/ with a Python venv in /var/www/html/...
HBi's user avatar
  • 59
0 votes
0 answers
21 views

Summary of the permissions of the various files and directories for an Apache + Python web server

I have been wrestling with my Digital Ocean + Ubuntu + Apache 2.4 + mod_wsgi + Python 3.11 + Flask server for days at this point trying to get my web app running, and it has been a nightmare for me to ...
Nathan Wailes's user avatar
0 votes
2 answers
51 views

Permission denied for urls paths Django + Apache + mod_wsgi

I have configured a Django application to be hosted in an Apache server using mod_wsgi. I have successfully opened the home page, but haven't been able to open other URLs. For instance, if I try to ...
André Mouro's user avatar
0 votes
1 answer
506 views

mod_wsgi: Permission denied: Unable to stat Python home

I was trying to deploy django app using mod_wsgi (version=4.9.4), apache2 and pyenv, also created the python virtual-env using pyenv, here is the apache configuration used <VirtualHost *:80> ...
Balaji Gandham's user avatar
0 votes
1 answer
32 views

mod_wsgi: Concise comparison of application groups / process groups / processes / threads?

Background I'm a Python dev trying to get comfortable using Apache and mod_wsgi in its 'daemon' mode to deploy Python web apps. Problem I've read a lot of the mod_wsgi docs but I'm still not sure I ...
Nathan Wailes's user avatar
0 votes
0 answers
10 views

mod_wsgi: Should the staging version of a web app be in a separate process group?

I'm trying to get familiar with Apache and mod_wsgi and I feel like I have somewhat of a grasp of how to use / think about process groups and processes: It seems like there's meant to be a 1-to-1 ...
Nathan Wailes's user avatar
0 votes
2 answers
50 views

ModuleNotFoundError: No module named 'projectName' - wsgi Django Deployment

I am trying to run my Django Project using Apache. When I launch Apache I receive an 'Internal Server Error', inspecting the logs I have found that it fails to execute the wsgi.py for my project and ...
Declan Morgan's user avatar
0 votes
1 answer
86 views

Getting error 404 not found with Flask running on Apache2

I have a static website running on Apache2. I have a form on the website, and I want to pass on the contents of the form to a Flask app. Right now I only get error 404 when trying to pass the data to ...
user1712825's user avatar
0 votes
1 answer
96 views

How does uWSGI compare with mod_wsgi today?

I've not done Python programming for more than a decade now and the mod_wsgi Apache module used to be one of the best WSGI server at that time. Since then many other WSGI servers seem to have cropped ...
sfxedit's user avatar
  • 157
0 votes
0 answers
41 views

Irregular WSGI daemon timeouts in remote Django server

I'm hosting a Django server on a virtual machine with Apache, and running into some odd timeouts. Specifically, every so often, the server will drop, with logs only displaying Timeout when reading ...
Destaq's user avatar
  • 665
0 votes
1 answer
49 views

Multiple Django Projects on Apache Server with mod_wsgi is trying to load wrong project libraries?

I'm trying to run multiple Django projects on one server. The server is Windows and I am using mod_wsgi with Apache. Normally, each project lives on it's own server and everything works great - but ...
UpDawg's user avatar
  • 61
0 votes
1 answer
408 views

mod_wsgi: ModuleNotFoundError: No module named 'app'

I'm trying to deploy a very simple Flask app that appears in this tutorial for testing login capabilities in a flask app: https://www.digitalocean.com/community/tutorials/how-to-add-authentication-to-...
Carlos Marcano's user avatar
1 vote
1 answer
119 views

Can you have multiple python versions with Conda and Apache2?

I'm trying to wrap my head around configuring Apache2 to run my Django project which runs by using conda. After switching recently from venv the goal is to run multiple projects with their own ...
JasonTS's user avatar
  • 2,549
0 votes
0 answers
36 views

Error while deploying Django with mod_wsgi

I'm trying to deploy my django project with mod_wsgi. My site config: <VirtualHost *:80> ServerName djangoproject.com ServerAlias www.djangoproject.com DocumentRoot /home/...
PR0J3CT's user avatar
  • 63
0 votes
1 answer
63 views

Odd behavior concerning Django's admin page saving files

I have Django 4.1.7 website, served by apache2 on Ubuntu PC. in the .conf file of apache2: Alias /static /mnt/hdd/SIMSY/static/ and Django works as expected. All CSS, JS, Images are loaded just fine. ...
Youssef Ihab's user avatar

1
2 3 4 5
65