Mod_Python for Apache 2.0 is released 19
semanticgap writes "The beauty of Python at Apache speeds! A couple of months after donation to ASF, a new mod_python is out under the Apache license.
Main feature of this release is Apache 2.0 compatibility, including support for filters and connection handlers and many more enhancements. More info at www.modpython.org. Note that this release is not compatible with Apache 1.3."
Does it risk taking down the server? (Score:2, Interesting)
Re:Does it risk taking down the server? (Score:3, Interesting)
it makes php a cgi app rather than a mod but that's a trade we're making for the other cgi anyway.
We decided that it's okay to trade speed for protection.
We can buy CPU cycles.
Re:Does it risk taking down the server? (Score:2)
As far as I know, it doesn't have a "safe mode" like PHP does, so scripted pages run under the server's user id with all of the server's access permissions. However, Apache 2 provides the new perchild MPM [apache.org], which allows you to assign different user ids to each virtual host. Unfortunately, according to the documentation "this MPM does not currently work on most platforms. Work is ongoing to make it functional."
Architecturally, assigning user IDs to virtual hosts is a far better solution (even the PHP developers admit that "safe mode" solves the problem at the wrong level) -- once it works, it will obviously solve the problem for all modules, including mod_python and mod_perl, without requiring the module developers to each develop their own, seperate safe mode equivalent.
Re:Does it risk taking down the server? (Score:1)
except that, sadly, the perchild MPM development seems to be dormant.
mod_python works great - when it works (Score:5, Informative)
It caught me out during a server replacement. I couldn't get it working on the fresh install.
Luckily the mod_python code I'd used had been for internal administration that I could do manually. I spent the week re-writing the python in php.
I've just read through the 3.0 manual and it looks like this restriction is lifted
2.1 Prerequisites
* Python 2.2.1 or later. Earlier versions of Python will not work.
* Apache 2.0.40 or later (For Apache 1.3.x, use mod_python version 2.7.x).
In order to compile mod_python you will need to have the include files for both Apache and Python, as well as the Python library installed on your system. If you installed Python and Apache from source, then you already have everything needed. However, if you are using prepackaged software (e.g. Linux Red Hat RPM, Debian, or Solaris packages from sunsite, etc) then chances are, you have just the binaries and not the sources on your system. Often, the Apache and Python include files and libraries necessary to compile mod_python are part of separate "development" package. If you are not sure whether you have all the necessary files, either compile and install Python and Apache from source, or refer to the documentation for your system on how to get the development packages.
Re:mod_python works great - when it works (Score:1)
uh-oh (Score:2)
Re:uh-oh (Score:1)
Re:mod_python and threading (Score:1)
In Red Hat 8... (Score:2)
mod_python-3.0.0-10
[root@eclipse root]# rpm -q httpd
httpd-2.0.40-8
Is that just a beta? The version number doesn't seem to indicate that, unlike with mod_perl:
[root@eclipse root]# rpm -q mod_perl
mod_perl-1.99_05-3
Re:In Red Hat 8... (Score:1, Informative)
Mod Python (Score:3, Funny)
Re:Mod Python (Score:2, Funny)