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

mod_python unable to locate the web.py module under a virtual environment

I have a small web.py Python application that I would like to serve under Apache using mod_python. The web.py framework, as well as other third-party Python modules the application in question relies upon, are installed in a virtual environment. …
ayaz
  • 10,406
  • 6
  • 33
  • 48
2
votes
1 answer

Running multiple Django projects under mod_python, without using VirtualHosts

I have two django projects on the same machine. They are set up using the standard django/apache/mod_python configuration, basically: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv…
2
votes
2 answers

mod_python Apache configuration

I am having issues with getting my Mod Python to work properly. I have followed mod_python manual found here So here is my Apache setup (I am using Virtual Hosts): ServerName hostname DocumentRoot "C:/Documents and…
Lark
  • 4,654
  • 7
  • 33
  • 34
2
votes
2 answers

Running Django in Virtualenv using Apache with Mod_Python and Multiple Python installations

I would like to run a Django project on a server using virtualenv in Apache using mod_python. Now I know that the recommended apache module to use is mod_wsgi, but I don't want to install that for now. The default python installation on the server…
Heyl1
  • 2,437
  • 3
  • 24
  • 31
2
votes
1 answer

how to add python path in mod_python

Hi I am using mod_python and I have a python module AA in a directory X and in directory X I have sub directories which has other modules which are imported in AA. I am importing AA in BB. when I run BB it fails to load modules imported in AA. It's…
user954299
  • 195
  • 5
  • 15
2
votes
2 answers

Why are my mod_python global variables resetting?

I have a server using apache2 with mod_python that seems to reset global variables after some short period of time. Until this happens, all the features of the server and global variables are handled exactly as I would expect. To rule out the…
spacelike
  • 33
  • 1
  • 6
2
votes
1 answer

Using pam_python in a script running with mod_python

I would like to develop a web interface to allow users of a Linux system to do certain tasks related to their account. I decided to write the backend of the site using Python and mod_python on Apache. To authenticate the users, I thought I could use…
simark
  • 490
  • 3
  • 9
2
votes
0 answers

mod_python 3.5.0 on windows

Did somebody install mod_python 3.5.0 on Windows? Google explains how to install it on *nix, but I need this Apache module on Windows. And I need only this version because it only Python 3+ is supported.
antonio_antuan
  • 1,293
  • 9
  • 22
2
votes
1 answer

Django logs: any tutorial to log to a file

I am working with a django project, I haven't started. The developed working on the project left. During the knowledge transfer, it was told to me that all the events are logged to the database. I don't find the database interface useful to search…
Boolean
  • 14,266
  • 30
  • 88
  • 129
2
votes
1 answer

How to exit from a python session on channel hangup .?

My scripts keeps on giving me error log Channel is hungup and application 'curl' does not have the zombie_exec flag Can anybody tell my how to exit session on channel hangup ?
user3310052
  • 71
  • 1
  • 7
2
votes
2 answers

Reading request parameters in Python

I am very new to python and having to get into this stuff for a simple program to integrate with an ASP.NET application that I am building. The pseudo code is as follows. Get two parameters from request. (A ASP.NET will be calling this url by POST…
vijay
  • 68
  • 2
  • 6
2
votes
1 answer

Modpython and virtualenv

Is it any way to run django site on virtualenv without administration rights? How can I do it? Virtualenv is already installed.
Pajtong
  • 21
  • 1
2
votes
3 answers

How do I change which version of python mod_python uses

I'm doing some introductory work with django which seems really easy (and fun) so far but I have been doing all this from Python 2.6 which I installed in /opt/local (RedHat 5.3) because the python that came with redhat was 2.4. I set up a…
jamesbtate
  • 1,359
  • 3
  • 19
  • 25
2
votes
1 answer

psp (python server pages) code under mod_wsgi?

Is there some way to run .psp (python server pages) code under apache + mod_wsgi? While we are moving towards newer wsgi based frameworks we still have some legacy code written in psp which runs under mod_python. We'd like to be able to run it on…
shreddd
  • 10,975
  • 9
  • 33
  • 34
2
votes
2 answers

How to make Apache/mod_python process collect its zombies?

Apache/2.2.6 (Unix) DAV/2 mod_python/3.2.8 Python/2.4.4 configured ... One of apache processes spawns some long-running python script asynchronously, and apparently doesn't seem to collect its child process table entry. After that…
victorz
  • 2,209
  • 4
  • 19
  • 15