mod-wsgi

mod_wsgi : mod_wsgi-express error : 'More than one MPM loaded'

最后都变了- 提交于 2019-12-08 12:50:32
问题 I am currently trying to install mod_wsgi in python by following steps in this page https://github.com/GrahamDumpleton/mod_wsgi (seems to be the official page). After installing with pip install mod_wsgi , I type command mod_wsgi-express start-server to check if it runs. It seems not running and I have an error : root@vpsxxxx:/# mod_wsgi-express start-server Server URL : http://localhost:8000/ Server Root : /tmp/mod_wsgi-localhost:8000:0 Server Conf : /tmp/mod_wsgi-localhost:8000:0/httpd.conf

Configuring WSGI to service a single index.html file for a single page application

北城以北 提交于 2019-12-08 12:25:04
问题 I have a standard Django application set up using WSGI on Apache2 (Ubuntu 18.04) I now want to serve all front end content via a single index.html file (still allowing access the /admin url and ensuring the REST api calls via /api work). I'm using Ember for the single page application. Any help much appreciated! Here is my current .conf set up: DocumentRoot /var/www/examplesite.co.uk/public_html Alias /static /home/someuser/djangoprojects/someuser_v1_project/static <Directory /home/someuser

Virtual environment not recognized in WSGIPythonPath

有些话、适合烂在心里 提交于 2019-12-08 11:29:57
问题 I'm trying to set up my Django project in production by using a virtual environment, using the documentation: https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/modwsgi/#using-a-virtualenv So, in my configuration I have: WSGIPythonPath /srv/zboss/zboss:/srv/zboss/venv/lib/python3.4/site-packages I restart Apache and I get the following error: Internal Server Error: /prot/ InvalidTemplateLibrary at / Invalid template library specified. ImportError raised when trying to load 'core

Django static files do not display in production server. How can I map them correctly, so I can see the admin GUI

Deadly 提交于 2019-12-08 08:38:54
问题 I am running a django project off of an Ubuntu Server 14.04, the web page is up and running, however when the page loads, there is no CSS, or format at all, it just looks like plain HTML. I know for sure that the admin page has a style and aesthetic, and even that looks like plain HTML. What did I do wrong? Maybe I didn't collect the static files correctly? Picture of the page: Not sure why this is happening Apache error.log: 回答1: did you set the STATIC_ROOT in your projects settings , then

Webserver to serve Python script

六眼飞鱼酱① 提交于 2019-12-08 07:48:34
问题 I have a Python script that I'd like to be run from the browser, it seem mod_wsgi is the way to go but the method feels too heavy-weight and would require modifications to the script for the output. I guess I'd like a php approach ideally. The scripts doesn't take any input and will only be accessible on an internal network. I'm running apache on Linux with mod_wsgi already set up, what are the options here? 回答1: I would go the micro-framework approach just in case your requirements change -

problem using WSGIApplicationGroup %{GLOBAL} in apache configuration

一曲冷凌霜 提交于 2019-12-08 06:33:47
问题 im using django with apache and mod_wsgi i am facing a problem when i use WSGIApplicationGroup %{GLOBAL} in apache configuration file (.conf) . i dont know if i am using this directive correctly or i need to use it in another way , the problem is that i needed to add this directive to fix a problem for xapian as described in this ticket (http://trac.xapian.org/ticket/185) after that the search started to work but all my sites contents got mixed up, meaning site1 content appears on site2.when

WSGI as AuthFormProvider

老子叫甜甜 提交于 2019-12-08 05:26:54
问题 Is it possible to use 'wsgi' as an AuthFormProvider in Apache2.4? As a first attempt I edited the examples found here. The configuration now looks like this but does not work: <Location "/test"> AuthType Form AuthFormProvider wsgi AuthName "test" AuthFormLoginRequiredLocation /login.html WSGIAuthUserScript /path/to/django/wsgi.py WSGIAuthGroupScript /path/to/django/wsgi.py Require Group test Require valid-user Session On SessionCookieName xyz path/ SessionCrypotPassphrase 123456789 </Location

Problem with deploying django application on mod_wsgi [closed]

为君一笑 提交于 2019-12-08 05:25:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I seem to have a problem deploying django with mod_wsgi. In the past I've used mod_python but I want to make the change. I have been using Graham Dumpleton notes here http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango1, but it still seem to not work. I get a Internal Server Error. django.wsgi file:

Mod_wsgi , django and apache not working correctly

我是研究僧i 提交于 2019-12-08 05:13:39
问题 Configuration : Application location: /home/cha0s/hello Wsgi file directory: /home/cha0s/hello/apache/django.wsgi django.wsgi import os import sys path = '/home/cha0s/hello' if path not in sys.path: sys.path.append(path) os.environ['DJANGO_SETTINGS_MODEULE']='hello.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() Apache file : /etc/apache2/sites_available/hello hello <VirtualHost *:80> ServerName blabla.com DocumentRoot /home/cha0s/hello

Need help identifying a memory leak involving matplotlib and flask

耗尽温柔 提交于 2019-12-08 04:02:39
问题 I have written a small webapp using the flask framework that involves plotting using matplotlib. The problem is that every time I create the plot, the process consumes more memory. I have deployed the app using mod_wsgi with a .wsgi file looking simply like this: from yourapplication import app as application The problems start when I access the url which creates the plot. The function creates a plotter object which, when initilized, takes the relevant data from a sqlite3 database (the data