Questions tagged [mod-wsgi]

mod_wsgi is an easy to use Apache module that can host Python web applications which support the Python WSGI interface.

mod_wsgi is a simple to use Apache module which can host any Python application which supports the Python WSGI interface. The module would be suitable for use in hosting high performance production web sites, as well as your average self managed personal sites running on web hosting services.

399 questions
3
votes
1 answer

Running apache + mod_wsgi as different user

I have a django project, which I am moving from the dev-server to apache. I have managed to get it server with mod_wsgi, but it runs as apache. Mod_wsgi documentation says, that if apache is run as root, it is possible to run mod_wsgi process as a…
Esa Varemo
  • 581
  • 3
  • 8
  • 21
3
votes
1 answer

Installing mod_wsgi with python 2.7 on ubuntu

I tried to install mod_wsgi on my ubuntu server using the package manager, but noticed it depends on python 2.6. I'm using python 2.7, and would rather avoid installing 2.6... Does mod_wsgi really depend on python 2.6, even if I intend to run only…
Filipe Correia
  • 253
  • 1
  • 4
  • 9
3
votes
1 answer

Apache2 mod_wsgi python 2.6 Django very slow

I've tried about 1000x things, but I can't seem to figure out why a simple django website is slow using apache 2.2.14/wsgi latest / django 1.3. I've confirmed the problem isn't our database by turning on mysql slow query logging. I've reviewed the…
3
votes
2 answers

Mod_wsgi daemon process status

Is there a way to get the status of the mod_wsgi daemon processes and threads? Something like apache's server status page. My server's taking a while to respond sometimes and I want to see if it's because all the daemon threads are busy.
Dan Benamy
  • 205
  • 1
  • 9
3
votes
2 answers

WSGIDaemonProcess: specifying a user

I have a user account all set up for this Python webapp I'm deploying with mod_wsgi. It's super-unprivileged, and only gets to read from the appdir and write to a separate set of tempdirs which no one else gets to look at. I'm using the following…
3
votes
2 answers

Debian Lenny, Python 2.7 and mod_wsgi

I am running a Debian Lenny box, which comes with Python 2.5.2. I would like to run Python 2.7 for my WSGI apps only, keeping 2.5 as default for the system, but I cannot get it to work. First, I installed Python 2.7.2 from source into…
igor
  • 161
  • 8
3
votes
2 answers

How to make apache to run python scripts using MOD_WSGI or MOD_PYTHON in RHEL6?

I am trying to make the apache to run python scripts. I have MOD_WSGI , Apache , Python installed on RHEL6. I even edited httpd.conf file to include these lines. Options Indexes FollowSymLinks MultiViews ExecCGI …
ASKN
  • 133
  • 1
  • 1
  • 7
3
votes
0 answers

Enabling mod_wsgi with SELinux (Is there a way?)

I recently had a bit of problem when recently by Deploying Django with mod_wsgi due to SELinux. Usually world get a "Permission denied" error (403). This was solved by disabling SELinux. Is there a way to use mod_wsgi while SELinux is enabled? Now…
Shehzad009
  • 147
  • 1
  • 2
  • 6
3
votes
1 answer

Deploying a Django application in a virtual Ubuntu Server

I have a virtualbox machine running Ubuntu Server 10.04LTS. My intention is to this machine to work like a VPS, this way I can learn and prepare for when I get a VPS service. Apache+mod_wsgi for deploying the Django app seems the right choice to…
mfsaint
  • 201
  • 2
  • 2
3
votes
1 answer

Installing mod_wsgi into apache2 on Mac OS X?

I used Homebrew to build and install mod_wsgi: $ brew install mod_wsgi ==> Downloading http://modwsgi.googlecode.com/files/mod_wsgi-3.2.tar.gz ######################################################################## 100.0% ==> ./configure…
Daryl Spitzer
  • 2,996
  • 9
  • 33
  • 40
2
votes
1 answer

Apache2.4 + Python 3.7 + mod_wsgi not executing script

I have installed Apache 2.4 (vc15 apacheLounge) and Python 3.7. I installed the mod_wsgi using PIP and everything appears to be setup correct in the Apache server. error.log from apache: [mpm_winnt:notice] [pid 9688:tid 780] AH00455: Apache/2.4.37…
luger
  • 21
  • 2
2
votes
1 answer

Wsgi not finding python modules

Trying to get Django server running with Apache and WSGI This is my wsgi.py import os from django.core.wsgi import get_wsgi_application sys.path.append('/home/rohan/Desktop/narsil/narsil') # adjust the Python version in the line below as needed…
Bayko
  • 121
  • 1
  • 1
  • 4
2
votes
2 answers

Error when trying install mod_wsgi using pip

When trying to install mod_wsgi using pip as follows: pip install mod_wsgi I get the following error: 4m.so -L/usr/local/lib -L/usr/local/lib/python3.4/config-3.4m -lpython3.4m /bin/ld: /usr/local/lib/libpython3.4m.a(abstract.o):…
Dean
  • 129
  • 1
  • 5
2
votes
1 answer

HTTP 503 errors with Apache and mod_wsgi

I have written a webapp in Django that I host under Apache 2.4 using mod_wsgi. At first glance, it works fine. However, when the Apache process has been running for a while, the webapp starts responding with 503 errors. You can get through sometimes…
Compizfox
  • 384
  • 1
  • 6
  • 18
2
votes
3 answers

apache 'The specified module could not be found. ' error

I got this message when I started the Apache service The Apache service named reported the following error: httpd.exe: Syntax error on line 128 of C:/data/apache/conf/httpd.conf: Cannot load C:/data/apache/modules/mod_wsgi.so into server: The…
Weiwei
  • 367
  • 1
  • 5
  • 10