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

mod_wsgi won't compile - cannot find -lpython3.2

I am trying to install Python 3.2 and mod_wsgi on my web server, but I am not having much luck. I downloaded the Python source files and compiled using this command: ./configure --enable-shared --prefix=/opt/python-3-2 LDFLAGS="-Wl,-rpath…
Brandon
  • 426
  • 5
  • 17
0
votes
1 answer

Python eggs are not imported for Apache2 mod_wsgi

I'm setting up Apache2 and mod_wsgi for Django in Debian, but I found problems. First, these are my directories: /webapps/lib/python2.6/site-packages # python eggs /webapps/lib/python2.6/ # python libraries /webapps/myproject.wsgi # wsgi…
Menda
  • 191
  • 1
  • 2
  • 6
0
votes
1 answer

centos,django, mod_wsgi & different python installations

I am getting this error File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module TemplateSyntaxError: Caught ImportError while rendering: No module named django_bcrypt. django_bcrypt is installed and can…
Jibin
  • 111
  • 1
  • 4
0
votes
1 answer

Segmentation Fault (11) with modwsgi on CentOS 5.7 when running pyramid app

I'm getting Segmentation fault error when trying to access the "Hello World" pyramid app. This error only occurs when running against CentOS 5.7 setup, but no problem whatsoever when tested against OSX and Arch Linux. Could it be a CentOS specific…
carbotex
  • 103
  • 3
0
votes
1 answer

WAMP Server not working when I add a directory directive

I am attempting to put WSGI (python) on a WAMP server (Apache 2.2.21, Python 2.7, WAMP 2.2a). Unfortunately, when i add just a simple directory directive and restart, Apache won't start. here is the code: LoadModule wsgi_module…
0
votes
2 answers

editing hosts file for local (running django and also php sites)

Right now, my http://localhost/ address for all of my php sites (which are in my Sites folder). However, my django sites will be in my /Users/myusername/djcode/www/ folder. How do I see my django sites through typing http://localhost/django/ but…
redconservatory
  • 101
  • 1
  • 6
0
votes
1 answer

Why are there double apache processes for mod_wsgi?

I am running a Django app using mod_wsgi, and am trying to understand how the apache processes work. Here is my apache httpd.conf: ServerName www.example.com ServerAlias example.com WSGIDaemonProcess example.com…
user749618
  • 193
  • 1
  • 6
0
votes
1 answer

Problem getting mod_wsgi running with apache

Not had any problems implementing this set up before, got a new server set up at home and wanted to work on some django projects. Im using virtualenv with virtualenvwrapper, mod_wsgi module seems to be installed correctly. here is the vhost im…
Mike Waites
  • 191
  • 1
  • 9
0
votes
1 answer

Run CherryPy script with Python2.6 rather than Python2.4 on RHEL

Working on a RHEL 5 server. Trying to make a small CherryPy app that takes in arguments from the url (ex. internet.com/cherrypy/data/22/45 would return 22 and 45) and then use that to query a SQL Server with those arguments incorporated. Then…
Omega192
  • 125
  • 1
  • 1
  • 8
0
votes
1 answer

mod_wsgi/3.2 mixing interpreters context with django on Apache2 using mod_rewrite .. why?

Long story tl;dr: With the configuration below Apache gets confused with Python interpreter context. I have three demo sites deployed using this setup and if you refresh them often a race condition occurs and some texts/images coming from the DB…
h3.
  • 189
  • 3
  • 9
0
votes
1 answer

mod_wsgi + Apache 2 -- not able to access wsgi file

I have installed libapache2-mod-wsgi-py3 from the synaptic package manager ( Ubuntu 11.04) and because I had used package manager, it automatically kept the wsgi.load and wsgi.conf files at the right places with the symbolic links. I created a wsgi…
0
votes
1 answer

Apache, Django with mod_wsgi, and large request buffering

In my setup of Apache 2.2 MPM worker and Django 1.3 with mod_wsgi 2.8, I need to support large POST request payloads. The problem is that when there are many such simultaneous requests, Apache uses up all the memory in the system and then crashes.…
Mukul
  • 3
  • 3
0
votes
2 answers

Installing mod_wsgi in addition to PHP

I would like to use some python scripts with my PHP-based application. I don't want to install Django; just mod_wsgi, so Apache can execute my python scripts as well as the rest of my PHP site. How do I configure Apache to do this?
A. Stanway
0
votes
1 answer

Centos 5.2 x86_64 install mod_wsgi.so error undefined symbol: ap_close_listeners

I am trying to install mod_wsgi.so on my VPS runninr Centors 5.21. I installed python 2.6 and compiled mod_wsgi. It all worked with ought an error. When i include the mod_wsgi.so in Apache i get the error: mod_wsgi.so: undefined symbol:…
Gabriel Solomon
  • 126
  • 3
  • 13
0
votes
2 answers

Apache + mod_wsgi: seem to be getting a 403 server error

Hello I had to recently reinstall mod_wsgi today (As our Red Hat server was curupted again). Something funny happed while deployiing with Django. I kept on getting page 403 errors You do not have permission to access /mmc on this server error. My…
Shehzad009
  • 147
  • 1
  • 2
  • 6