Mod_Python for Apache 2.0 is released
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."
mod_python for 1.3 had an annoying threading conflict. Which meant that the python version you needed for mod_python was generally different from the default install.
:
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.
There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
Note that this release is not compatible with Apache 1.3.
So is that like saying "I fart in your general direction" ?
[root@eclipse root]# rpm -q mod_python
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
and the search for the.... ah nevermind
Hacker Media
I'm a FreeBSD user. Is this a "heads up, trouble is coming" situation?
There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
According to the mailing lists, it seems like threading will work with apache 1.3 as well, you just need to use Python 2.2.1. See this message. Since one of the requirements for mod_python 3.0 is Python 2.2.1, it seems reasonable to assume that this is the reason it works with Apache 2.0 as well...
Without the MS Visual Studio 7 run-time file, you will get a "module not found" even when the mod_python.so is in the right spot...
? msvcr70
You can get the MS VS run-time file at:
http://www.dll-files.com/dllindex/dll-files.shtml
copy msvcr70.dll %windir%\System32
And everything should work after that...
-Ironstorm
If you download the .so from apache.org you'lld _python-3.0.0-BETA4.tgz
need to also get
http://www.apache.org/dist/httpd/modpython/dev/mo
Uncompress it and copy lib/python/mod_python/*.py
to %PYTHON_HOME%/Lib/site-packages/mod_python
Otherwise you will get,
[Wed Dec 11 03:45:17 2002] [error] make_obcallback: could not import mod_python.apache.
when you are trying to do the tests & tutorials...