mod-wsgi

Install mod-wsgi in a poetry virtual environment

Install mod-wsgi in a poetry virtual environment Question: I have a django app. I’ve created a poetry virtual environment to manage dependencies. This app runs on python 3.10. My pyproject.toml looks like this: [tool.poetry] name = "django_manager" version = "0.1.0" description = "A Game manager" authors = [""] [tool.poetry.dependencies] python = "^3.10" Django = "^4.1.7" …

Total answers: 1

wsgi:error ModuleNotFoundError in my webapp model

wsgi:error ModuleNotFoundError in my webapp model Question: Hello IT ladies and IT gentlemen. Please, help me with non-recognized folder "devices". I have a program for reading data from robot. And data are stored in "devices" folder. My file structure: GRP devices _ _ init _ _.py dev1.py dev2.py dev3.py webapp.py tools _ _ init _ …

Total answers: 1

How to configure apache for flask and php on the same server

How to configure apache for flask and php on the same server Question: The server that I’ve been upgrading/updating has pages using php and python. I’ve rewritten the python based pages using the Flask framework and apache is configured using wsgi: <VirtualHost *:443> ServerName my_fake_site … AliasMatch ^/((?:flask_dir1|flask_dir2).*).((css|php|png)$((?:?.*)?)) /var/www/html/app/$1.$2 AliasMatch ^/(.*).(css|html|php|png) /var/www/html/$1.$2 WSGIDaemonProcess main_proc processes=8 …

Total answers: 1

Django mod_wsgi Apache Server, ModuleNotFoundError: No Module Named Django

Django mod_wsgi Apache Server, ModuleNotFoundError: No Module Named Django Question: I read ton of articles, but still can’t figure out what I’m missing. I’m running a django website from virtualenv. Here’s my config file. The website address is replaced by <domain.com>, can’t use that here. Config <VirtualHost *:80> ServerAdmin sidharth@collaboration-management ServerName <domain.com> ServerAlias <domain.com> DocumentRoot …

Total answers: 4

How to install mod_wsgi into Apache on Windows?

How to install mod_wsgi into Apache on Windows? Question: Other similar answers are out of date or focus on a particular error and not the whole process. What is the full installation process of mod_wsgi into an Apache installation on Windows 10? Asked By: Robin De Schepper || Source Answers: Install Microsoft Visual C++ Build …

Total answers: 3

apache/mod_wsgi – how to configure mutiple webapps using different python virtual environments

apache/mod_wsgi – how to configure mutiple webapps using different python virtual environments Question: Environment: Ubuntu, Apache HTTPD, mod_wsgi compiled with python 3.6, website (assumed): testthisout.com Problem: I have 2 different webapps which will use 2 different python virtual environments. They will be hosted at testthisout.com/app1 and testthisout.com/app2 I am struggling to figure how to tell …

Total answers: 1

I'm not able to install mod_wsgi even tho im installed visual c++

I'm not able to install mod_wsgi even tho im installed visual c++ Question: I wanna install mod_wsigi (pip install mod_wsgi) for my local apache server on windows for that i allreday installed Microsoft Visual C++ 2017 Redistributable (x64) – 14.16.27027. still after that im not able to install mod. I will be very thankful to …

Total answers: 2

"ImportError: No module named django.core.wsgi" apache error

"ImportError: No module named django.core.wsgi" apache error Question: I’m trying to run a django project on CentOS 7. I have a virtual environment inside my project containing all the required packages, … . I configured my httpd.conf file as follows: <VirtualHost *:80> ServerName the_server_ip_address ServerAlias localhost DocumentRoot /var/www/html # adding these lines for handling static …

Total answers: 3

Why does `flask_bootstrap` fail to import?

Why does `flask_bootstrap` fail to import? Question: When running a flask app, Apache2’s error.log shows that the flask_bootstrap module cannot be found: [wsgi:warn] mod_wsgi: Compiled for Python/2.7.11. [wsgi:warn] mod_wsgi: Runtime using Python/2.7.12. [mpm_event:notice] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/2.7.12 configured — resuming normal operations [core:notice] AH00094: Command line: ‘/usr/sbin/apache2’ [wsgi:error] mod_wsgi (pid=18587): Target WSGI script ‘/var/www/myapp/myapp.wsgi’ …

Total answers: 2