Questions tagged [mod-wsgi]

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

The mod_wsgi module is a python WSGI adapter module for Apache. For details on the official channel for getting mod_wsgi help, see http://modwsgi.readthedocs.io/en/develop/finding-help.html.

3241 questions
1
vote
0 answers

mod_wsgi : Subprocess.call() usage

I have a CherryPy service that executes an .exe utility when called. The utility accepts command line arguments and I use using subprocess.call() method like below to execute it. import os import subprocess arguments = ['utility.exe'…
Sam Rohn
  • 359
  • 2
  • 5
  • 13
1
vote
1 answer

How can I pass a 'unicode string' to os.environ within a wsgi.py

apache2 wsgi VHOST python3 If I try to set envvars as part of my wsgi.py I do run into problems if values contain non-ascii characters. Traceback (most recent call last): File…
1
vote
1 answer

Serving static files using mod_wsgi-express with ProxyPass in Apache is not working

I found out mod_wsgi-express today and I think it is really cool project. I can't believe this single command is all needed to deploy Python/Django web applications. mod_wsgi-express start-server project/wsgi.py However, documentation seems to be…
chhantyal
  • 11,874
  • 7
  • 51
  • 77
1
vote
2 answers

Allow different user ability to modify time of wsgi file with touch -m

I am using mod_wsgi which has the ability to dynamically reload my run.wsgi script when there's a change. My app has many files, but only run.wsgi is monitored for changes. Docs recommend to just 'touch' run.wsgi when any app files change - which…
tarponjargon
  • 1,002
  • 10
  • 28
1
vote
2 answers

How can I scale a webapp with long response time, which currently uses django

I am writing a web application with django on the server side. It takes ~4 seconds for server to generate a response to the user. It makes use of a weather api. My application has to make ~50 query to that api for each user request. Server side…
refik
  • 339
  • 2
  • 13
1
vote
1 answer

Multiply Django Apache servers

I currently have one server with an Apache-Django app running on it along with postgresDB. I would like to add another server with the Apache-Django app that is connected to the same postgresDB instance. I would like both the apps to be…
Ariel Livshits
  • 591
  • 1
  • 7
  • 23
1
vote
1 answer

How to avoid httpd restart/reload (mod_wsgi) on adding/deleting a tenant

In our multi-tenant architecture (apache, django, mysql) For each new tenant we create, we add a conf file(/etc/httpd/conf.d/) e.g., customer1_http.conf We tried mod_wsgi, touch wsgi(mod_wsgi), but Apache able to pick the newly added tenant (unless…
Prabhath Kota
  • 93
  • 1
  • 7
1
vote
2 answers

mysql and gunicorn open connections at the same port

SOME BACKGROUND: I have created a django app and I am at the point where I want to deploy it. I have looked at multiple options including wsgi but since the new mac os update came about, I can not install mod_wsgi because I do not have apxs or…
thatguy
  • 97
  • 9
1
vote
1 answer

Redirection: mod_wsgi and django

following this guide, I have setup Mailman 3 with Apache and mod_wsgi on a Debian server. The .conf-file of my virtualhost: ErrorLog /var/log/mailman-web/mailman-web.log CustomLog /var/log/mailman-web/mailman-web_access.log combined WSGISocketPrefix…
Oguzhan Er
  • 13
  • 3
1
vote
3 answers

Run Django with python as daemon

We have web application which is running with django, python and PostgreSQL. We are also using virtualenv. To start the web service, we first activate the virtualenv and then start python as service on 8080 with nohup. But after sometime nohup…
amit singh
  • 219
  • 4
  • 22
1
vote
2 answers

Use php while running mod_wsgi-express with django

I am currently running a django application on my server and everything is fine with it but when I try to access php files like phpliteadmin.php which is located in /etc/mod_wsgi-express-80/htdocs I can only see the code but the php is not executed.…
JohnDro
  • 80
  • 6
1
vote
1 answer

Django not authenticating under mod_wsgi

i'm pulling my hair out for a while with this. i'm deploying my django application from the test server to an apache with mod_wsgi machine. everything seems to work except the django user authentication system it seems to write session to table…
1
vote
0 answers

mod_wsgi windows binary required for apache 2.2 and python 3.5

I need the mod_wsgi whl file for win 64 bit-Apache webserver 2.2 +Python 3.5 I searched for it but could not get it. I have the one for apache version 2.4 Where do I get it? when I try pip install mod-wsgi I get error (r_web)…
payesh
  • 43
  • 1
  • 4
1
vote
0 answers

ImportError: No module named FlaskApp

I am puzzled by no module named app importerror. When I use name FlaskApp, everything works, when I change name to xyzApp, it does not and I am getting ImportError. Here is the error code: Target WSGI script '/var/www/xyz/xyzApp.wsgi' cannot be…
user3151858
  • 790
  • 4
  • 13
  • 26
1
vote
1 answer

How long should it take for "Loading WSGI script" for a python app configured on an apache web server?

I am testing to see if I can serve a simple Python website on an Apache web server. I installed mod_wsgi, modified httpd.conf and etc/hosts file. I am tailing the server error log, and I have been waiting for wsgi script to load. Below is the…
Jenna Kwon
  • 1,212
  • 1
  • 12
  • 22