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

Python 2.7 OS X installer, mod_wsgi and Apache

The Python 2.6 OS X installer didn't support 64 bit architectures, necessitating some chicanery to get mod_wsgi, Python 2.6 and Apache2 working on 10.5. However, the Python 2.7 OS X installer does build a 'fat' Python install, so I'd like to know if…
Dave Everitt
  • 17,193
  • 6
  • 67
  • 97
1
vote
2 answers

multiple Django projects apache virtual hosts

I'm a newbie to apache. So I'm trying to run at least two different django projects on one Ubuntu Server with a single IP address. IP: 123.456.789 Domain 1: www.example.de for Project1 Domain 2: www.test.de for Proejct2 The DNS for both domains…
bratanKamil
  • 55
  • 1
  • 5
1
vote
1 answer

Django + mod_wsgi + apache2: ImportError: No module named

I'm trying to get to the bottom of my problem regarding running any "migrate" command on my django project. I have a django app deployed in a virtual env and with mod_wsgi and apache2 the app is served properly at www.mysite.com/test/simulatore. The…
Fabio
  • 129
  • 1
  • 7
1
vote
3 answers

Problems getting Django project to run in mod_wsgi

I am having some issues getting a django project of mine to be properly served via mod_wsgi. This is the first time I have tried something like this so please forgive any noob mistakes. The error I am currently getting is as follows: [Wed Oct 19…
1
vote
2 answers

Python WSGI deployment on Windows for CPU-bound application

What options do I have for the deployment of a CPU bound Python-WSGI application on Windows? The application benefits greatly from multiple CPUs (image manipulation/encoding) but the GIL prevents it from using them. My understanding is: mod_wsgi…
olt
  • 2,267
  • 1
  • 19
  • 13
1
vote
1 answer

Deploying Python Flask App on Apache with Python version installed in Virtual Environment Only

I am working on a CentOS7 development environment. The machine came with Python 2.7.5 pre-installed. I have developed a web application using Python 3.5.1 which along with it's dependencies was installed in the virtual environment only. Python 3 is…
Steve Kiss
  • 1,108
  • 3
  • 13
  • 24
1
vote
1 answer

Target WSGI script cannot be loaded as Python module + no module named Django

I know that the question has already been asked here. I've read tons of answers, but nothing helped. I'm using virtualenv (/root/eb-virt); my Django project is called mediar. All public files are stored in /var/www/html/xxx.com/public_html/ From…
Sophie Panic
  • 23
  • 1
  • 3
1
vote
1 answer

Where does pip install its modules? What if using a virtualenv? Also getting an error setting up mod_wsgi

I am new to Python and there are some things which I am not able to apprehend. Questions may seem like very kiddish, so bear with me. As you know, Ubuntu comes with an outdated Python version. I wished to use the latest python. But since it is…
ks_mani
  • 169
  • 1
  • 5
  • 18
1
vote
1 answer

Syntax Error with Django, WSGI, and Apache

I am getting a weird error while trying to run my Django site under Apache using mod_wsgi. I have been working on this for hours to no avail. FYI: I am also using Mezzanine. Log: [Fri Oct 14 23:48:13 2016] [error] [client 128.187.3.30] mod_wsgi…
Gavin D. Howard
  • 371
  • 4
  • 9
1
vote
1 answer

Don't have permission to access / on this server (apache2) in docker

I am trying to host Django project in Docker using apache2 server. I am starting the apache server manually and able to access the default site. But when I configure the 000-default.config file I am getting error You don't have permission to access…
ketan khandagale
  • 460
  • 6
  • 22
1
vote
2 answers

Acache: wsgi and alias incompatibility

I am trying to setup Apache so that: if the user goes to /temp then the file /home/temp/public_html/index.html is served if the user goes to /temp/app then my mod-wsgi /home/temp/app/start.wsgi is executed I currently have this:
Ricardo Magalhães Cruz
  • 3,504
  • 6
  • 33
  • 57
1
vote
1 answer

MacOS + apache + mod_wsgi + django: what's a correct folder layout and permissions for web apps?

I'm testing django right now on Max OS X Snow Leopard Server. I have compiled mog_wsgi for build-in apache/python and enabled it in apache via LoadModule wsgi_module. I have also installed django via standard python setup.py install command. After…
grigoryvp
  • 40,413
  • 64
  • 174
  • 277
1
vote
2 answers

Serving static files with apache and mod_wsgi without changing apache's configuration?

I have a Django application, and I'm using a shared server hosting, so I cannot change apache's config files. The only thing that I can change is the .htaccess file in my application. I also have a standard django.wsgi python file, as an entry…
Sam
  • 6,437
  • 6
  • 33
  • 41
1
vote
0 answers

How to deploy Django using virtual node of apache and virtual python environment?

I have to deploy my Django application on a server which I have limited access to its apache web server. Each student have access to a folder which is a Virtual Host Node with this structure: student/ cgi-bin/ html/ data/ Folder data is…
sheshkovsky
  • 1,302
  • 3
  • 18
  • 41
1
vote
0 answers

Django, Apache, failure with Debug=False

I have a problem with Django, running on Apache and Python 3.5. App is running okay, and the first problem with my app is with Debug=False thing. I already created custom handler404 method , and when i type some wrong URL, basically I'm expecting…
mejdenovac
  • 21
  • 1