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
2 answers

Can't load statics, Django rest_framework on Apache, Windows

So, i'm trying to learn django as well as trying to make an app with Angular and Django REST backend on Apache server via mod_wsgi. Currently, i got a problem with static files. Everyhing is ok when app runs with Django tools on 127.0.0.1:8000, but…
genesi5
  • 455
  • 3
  • 17
1
vote
0 answers

Deploying multiple django sites with mod_wsgi apache linux

I wish to deploy multiple Django sites (say 2 for now - www.example.com, www.example2.com) using apache2 mod_wsgi. Here are the steps I followed in a fresh Ubuntu 16.04 installations. I've set alias python=python3 in my .bashrc as I am working in…
1
vote
1 answer

gdal not working with flask (on apache + mod_wsgi)

I'm using gdal in a python script that runs flask (on apache + mod_wsgi). When starting the server i get this error: ImportError: /usr/bin/anaconda/lib/python2.7/site-packages/osgeo/../../.././libcurl.so.4: undefined symbol: SSLv2_client_method the…
luckyshonway
  • 101
  • 1
  • 7
1
vote
1 answer

How do I set up Django 1.11 with Python 3.6.1 using Apache 2.4 on Ubuntu 16+

I'd like to know how to quickly and simply set up Django on Ubuntu I have read so much official and user documentation my head is spinning and am not 100% sure where to start. I'm not an absolute beginner and I have some working knowledge of…
JxAxMxIxN
  • 1,711
  • 1
  • 17
  • 20
1
vote
2 answers

Django ORM Cannot filter by reversed foreign key

I have a weird behaviour on my production server. When I try to filter by reversed foreign key then I receive an error that it is not possible, but locally it works fine, e.g.: class Foo(models.Model): pass class Bar(models.Model): name =…
szaman
  • 6,666
  • 13
  • 53
  • 81
1
vote
1 answer

Why does Paste ErrorMiddleware throw an exception when I use it with my Python 3 mod_wsgi application?

I am trying to use the ErrorMiddleware included in Python Paste 2.0.3 in order to show tracebacks in the browser when my Python 3.4 mod_wsgi application server throws an exception. The issue I am having is that the ErrorMiddleware is throwing this…
gla3dr
  • 2,179
  • 16
  • 29
1
vote
1 answer

mod_wsgi takes minutes on first page load after Apache restart

I have an outlier of a Django project with thousands of models. It serves as a RESTful API to data we have using Django REST Framework. When I start Django's runserver, it takes several minutes to come up, due to validating the data models in the…
FlipperPA
  • 13,607
  • 4
  • 39
  • 71
1
vote
2 answers

Unable to connect to WSGI daemon process mod_wsgi in Centos7 with Cpanel/WHM

I'm with a problem while deploying Django in my VPS with Centos 7.3 and WHM. It seems to work, except for a socket problem with mod_wsgi. [Sun Jun 25 00:37:03.254774 2017] [wsgi:error] [pid 29756] (13)Permission denied: [client 66.249.83.220:35523]…
Ricardo Prado
  • 11
  • 1
  • 2
1
vote
1 answer

Deploying Django Project with apache2

Someone can help me why it doesn't work? (my project name is ikh) i'm using ubuntu 16.04 LTS, Apache2 , Python3 ServerAdmin webmaster@localhost DocumentRoot /var/www/ikh WSGIDaemonProcess ikh python-path=/var/www/ikh/ …
1
vote
1 answer

AWS S3 - failed to identify the profile information

I am using boto3 for communicating with AWS S3. I first tried with my local system. It successfully got connected and was working fine. I moved the code to the server(flask-apache2). Now the code is not working. It shows ProfileNotFound: The config…
AKA
  • 5,479
  • 4
  • 22
  • 36
1
vote
1 answer

SSHTunnelForwarder works fine in command line python but raised import error in Apache WSGI application

I am using SSHTunnelForwarder to connect remote database, I run the following code in command lind python client within Anaconda environment and it works fine. with SSHTunnelForwarder( ('ip', 22), ssh_password="pass", …
franky
  • 53
  • 10
1
vote
1 answer

Serve phpMyAdmin with mod_wsgi already serving django projects on port 80?

Note: I'm very new to Apache, so I may just need a simple tip. I've successfully followed the instructions at https://pypi.python.org/pypi/mod_wsgi to set things up so I have an empty Django project being served over port 80 on an AWS Linux AMI EC2…
1
vote
1 answer

Serving Multiple WSGI Applications As Different Virtual Hosts on Apache

I have an EC2 AWS server on which I would like to host a couple of Django applications. Each of these apps has its own URL. For instance, example1.com example2.com By itself, example1.com works. The problem is getting example2.com to work with it at…
MadPhysicist
  • 5,401
  • 11
  • 42
  • 107
1
vote
2 answers

Pandas and Numpy Import error when using Apache2, Anaconda and Django

Am getting the following error - Missing required dependencies ['numpy'] Standalone and via Django, without Apache2 integration - the code work likes charm, however things start to fall when used with Apache2. It refuses to import pandas or numpy…
Amit Pandey
  • 1,436
  • 2
  • 24
  • 34
1
vote
2 answers

Django wsgi Apache2: 'AH01630: client denied by server configuration'

I've followed this tutorial to deploy my django project : https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-debian-8 Why the static files can't be loaded from apache? I am using Debian9,…
Alex Lucaci
  • 620
  • 8
  • 18