Questions tagged [mod-python]

Mod_python is an Apache module that embeds the Python interpreter within the server.

Mod_python is an Apache module that embeds the Python interpreter within the server. With mod_python you can write web-based applications in Python that will run many times faster than traditional CGI and will have access to advanced features such as ability to retain database connections and other data between hits and access to Apache internals.

Currently mod_python is not under active development. This does not mean that it is "dead" as some people have claimed. It smiply means that the code and the project are mature enough when very little is required to maintain it.

Projects website:

Current State of Mod_Python

289 questions
0
votes
3 answers

mod_python on CentOS under httpd and hsphere

I have asked our hosting provider to add mod_python to our httpd server. The server appears to be in an hsphere cluster and they appear to use yum to administer it. He is reporting some dependencies missing and I do't quite understand how that…
Simon
  • 78,655
  • 25
  • 88
  • 118
0
votes
1 answer

mod_python req.subprocess_env not "seeing" PythonOptions

I'm having trouble getting an environmental variable out of apache config. (don't ask why it's being done this way, I didn't originally code it) This is what I have in the apache config. SetHandler python-program …
Brandon Helwig
  • 634
  • 1
  • 7
  • 14
0
votes
1 answer

What's wrong with the Basic configuration of apache and mod_python?

the the Basic configuration of apache is: LoadModule python_module /usr/lib64/httpd/modules/mod_python.so SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv…
lxgeek
  • 1,732
  • 2
  • 22
  • 33
0
votes
3 answers

Installing mod_python on Snow Leopard

I'd rather not use Macports. Simply cause Macport replaces (installs another Apache in /opt/local/bin) the default installation of Apache. And that would mean having ports install/replace PHP too. I'd rather use the default installation included in…
Stephen Cox
  • 3,535
  • 3
  • 22
  • 16
0
votes
1 answer

psycopg2 and mod_python import error

I am trying to setup roundup on a windows XP machine. I use psycopg2 v2.0.13 and when i import the psycopg2 module from the shell it all works fine, but when mod_python tries to do it, I get this error: MOD_PYTHON ERROR ProcessId: …
disc0dancer
  • 9,185
  • 11
  • 36
  • 46
0
votes
2 answers

How to run python script which require root privilage for execution in apache with mod_python at openbsd

I am trying to run python script in Apache 2.x with mod_python. I edited httpd.conf with publisher LoadModule python_module /usr/local/apache2/modules/mod_python.so SetHandler…
0
votes
1 answer

ImproperlyConfigured: Requested setting MIDDLEWARE_CLASSES, but settings are not configured

i am confuring the apache mod_wsgi to django project and here is my djangotest.wsgi file import os import sys sys.path = ['/home/pavan/djangoproject'] + sys.path os.environ['DJANGO_SETTINS_MODULE'] = 'djangoproject.settings' import…
pavan
  • 334
  • 6
  • 20
0
votes
2 answers

Problem to make an apache server run correctly under mod_python

We try to migrate our old server to a new one but we experienced some problems with mod_python. The problem is under this web page: http://auction.tinyerp.org/auction-in-europe.com/aie/ Here is our apache2 configuration: NameVirtualHost…
0
votes
1 answer

Why is a newline appended when using mod_python sendfile?

I am serving a website from a fedora 17 server. This website allows the user to click and download from a list of files. When the user clicks to download a file however, a newline character (0A) is being appended. This changes the md5sum of the…
ostler.c
  • 3,282
  • 3
  • 21
  • 21
0
votes
1 answer

mod_python interpreter's cache not getting reset on script change?

I use mod_python.publisher to run Python code and discovered a problem: When I update a script the update doesn't always work right away and I get the same error I fixed with the update until I restart Apache. Sometimes it works right away, but…
Arie Skliarouk
  • 423
  • 2
  • 11
0
votes
1 answer

Can I use mod_python's Sessions with mod_pywebsocket?

I'm creating a simple web game that uses web sockets for to stream updates HTTP AJAX requests for everything else (e.g. login system, user profiles, &c). Unfortunately I'm somewhat new to mod_python, but it seems that I want to use the Sessions…
Troy
  • 1,599
  • 14
  • 28
0
votes
1 answer

Unable to write to files with mod_python and PSP

So, I have a Python Server Pages script that when ran, saves stuff to a file in /var/www/. It opens the file with: open(filename, 'wb') Which causes this: IOError: [Errno 13] Permission denied: 'file.txt' I'm using Apache and have set /var/www/ to…
user1814016
  • 2,273
  • 5
  • 25
  • 28
0
votes
1 answer

mod python, get POST parameters from request object

Is there any basic example that shows how to get POST parameters from the request in mod python custom handler. I have no trouble in GET requests, where I get my arguments from request.args, BUT if method is POST, request.args is None. Thanks.
ScotchAndSoda
  • 3,811
  • 4
  • 34
  • 38
0
votes
2 answers

mod_python problem?

I have been working on a website using mod_python, python, and SQL Alchemy when I ran into a strange problem: When I query the database for all of the records, it returns the correct result set; however, when I refresh the page, it returns me a…
Dan Bair
  • 23
  • 6
0
votes
1 answer

Getting POST variables in mod_python

I've got a simple page here, titled login.py for the time being since eventually it will be a functional login page. However, right now I've got it set up to try to get POST variables from the form being submitted. This is the code I have so…
Skyline969
  • 431
  • 2
  • 7
  • 17