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
1 answer

Cant establish connection: HTSQL via mod_wsgi (file not found)

I would like to integrate HTSQL on apache server using mod_wsgi. Both apache and mod_wsgi were successfully configured, hello world python script executes and works! However, when I try to run HTSQL python script (named htsql_wsgi.py and using these…
Dfinzgar
  • 88
  • 5
1
vote
1 answer

I can't join background thread in flask with apache's mod_wsgi

I'm building a web-server using Flask + Apache + mod_wsgi. I need to start a background thread in my web-server in order to do some stuff periodically. Everything fine, app started and thread works, but I can not join it. Below is some code…
sashadereh
  • 223
  • 1
  • 15
1
vote
1 answer

How to deploy a Flask app with factory function for application creation

I have managed to deploy a singleton flask application with wsgi and apache2 using the following configurations in the .wsgi file. #!/usr/bin/python import sys import…
luishengjie
  • 187
  • 6
  • 15
1
vote
1 answer

How do I set up the .wsgi file and apache configuration to deploy on a Large Flask Application on a Debain Server?

I have created a Flask Application based on the Large Application Structure in Miguel Grinberg's Flask Web Development Book. I have followed the tutorial in how-to-deploy-a-flask-application-on-an-ubuntu-vps and have managed to deploy a single file…
luishengjie
  • 187
  • 6
  • 15
1
vote
0 answers

Error 'could not read symbols: Bad value' when installing Python

i need to install mod_wsgi for Django, but when i do pip install mod_wsgi i have an error: /usr/local/lib/libpython2.7.a: could not read symbols: Bad value collect2: ld returned 1 exit status error: command 'gcc' failed with exit status…
worm2d
  • 159
  • 1
  • 2
  • 14
1
vote
1 answer

mod_wsgi with Django 500 error

I'm using Ubuntu 14.04, Apache 2.4, Python 2.7.6, Django 1.9.5 and mod_wsgi 4.5.1 installed from source. My folder structure looks like so: project -site -mysite -apache -wsgi.py wsgi.py: import os, sys from django.core.wsgi…
1
vote
1 answer

How can I stop sys.stdout logging to apache error file?

I have the Python logging library set up to log everything to my console handler. This works great in development so I can see my log messages without having to look through the files but in production all of the logs are being written to the apache…
Jim Wright
  • 5,905
  • 1
  • 15
  • 34
1
vote
1 answer

All logs being duplicated into apache error log

I have a flask project with logging set up by a config file. This works as desired when running locally but when I run it under apache wsgi all of the log messages (not just errors) are written to the error.log file set up in the vhost as…
Jim Wright
  • 5,905
  • 1
  • 15
  • 34
1
vote
1 answer

How do I receive subdomain wildcards on Apache2 using mod wsgi?

I'm developing an app with Django 1.8 and I'm trying to receive subdomains and then present customized homepages dependent on the subdomain. For example: example.com is my company's homepage, a user signs up as conqueryor.example.com and they get a…
conqueryor
  • 11
  • 3
1
vote
1 answer

Web.py URL Mapping not accepting '/'

So every web.py tutorial I've seen includes this line: urls = ( '/', 'index', ) And then, later on, the index class is defined with a GET function and so on. My problem is, this doesn't work. Using the code above, I get a 404 error. Using the…
Steve Paulo
  • 17,954
  • 2
  • 23
  • 23
1
vote
1 answer

Can't load mod_wsgi compiled for Python 3

I'm on CentOS and trying to configure Apache to use mod_wsgi compiled against Anaconda Python 3.5. Compiling mod_wsgi seems to go OK: sudo yum install httpd-devel sudo ./configure --with-python=/opt/anaconda/anaconda3/bin/python sudo make ls -l…
xnx
  • 24,509
  • 11
  • 70
  • 109
1
vote
2 answers

Error configuring Django to run customized comments framework

I'm having an issue with setting up a Django website which uses the Django comments framework on my server. The site runs fine when run locally (using manage.py runserver) but when pushed live I'm getting the error: ImproperlyConfigured at / The…
Will
  • 1,149
  • 12
  • 25
1
vote
0 answers

Setting up SSL Certificate using mod_wsgi

I have developed a Django 1.8 application using Python 3.3. I am trying to deploy the application on a university dedicated server with Red Hat Enterprise Linux Server release 7.2 (Maipo). (Note: RHEL does not let me install newer versions of Django…
1man
  • 5,216
  • 7
  • 42
  • 56
1
vote
2 answers

Development setup advice needed - Django + Apache2 + mod_wsgi - on Mac and Ubuntu Dev Server

I need advice if this setup is ok. I have a personal dev server which runs Ubuntu. I have setup Ubuntu completely with git, django, mod_wsgi and apache2 running. I will be developing using my Macbook Pro. My idea was to have identical directory…
user201788
1
vote
1 answer

mod_wsgi: How to run different apps under single domain?

I have a domain example.com and I run a standard Apache there (serving static files and PHP). I want to run Python served pages on subdomain.example.com. I managed to configure Apache to do this and there is a Flask app running at…
petr
  • 1,099
  • 1
  • 10
  • 23