[mod_python] install problems under Fink and OSX 10.3 Panther

Victor Ng crankycoder at gmail.com
Mon Nov 15 14:47:36 EST 2004


There's really not much to it is there?  I just did the usual
configure; make; make install

$ ./configure --with-apxs=/sw/sbin/apxs --with-python=/sw/bin/python
$ make clean; make; sudo make install

I added :

LoadModule python_module /sw/lib/apache2/modules/mod_python.so

to my httpd.conf file for Apache2, then I added the couple lines of
config to run the mptest.py script.

> >    1123 <Directory /Users/victorng/Sites>
> >    1124     AddHandler mod_python .py
> >    1125     PythonHandler mod_python.publisher
> >    1126     PythonDebug On
> >    1127 </Directory>

Did I miss something?

vic



On Mon, 15 Nov 2004 10:37:17 -0800, Justin Ryan <jryan at qutang.net> wrote:
> Please explain how you've installed mod_python...
> 
> 
> 
> On Nov 14, 2004, at 5:14 PM, Victor Ng wrote:
> 
> > Hi all, I'm having problems getting mod_python to run using Apache2
> > using Fink 0.23.2.
> >
> > I have the following lines in my httpd.conf file:
> >
> >    1123 <Directory /Users/victorng/Sites>
> >    1124     AddHandler mod_python .py
> >    1125     PythonHandler mod_python.publisher
> >    1126     PythonDebug On
> >    1127 </Directory>
> >
> > When I try running the mptest.py I get a 500 internal server error and
> > the following lines show up in my Apache error log:
> >
> > [Sun Nov 14 20:13:11 2004] [error] make_obcallback: could not import
> > mod_python.apache.\n
> > [Sun Nov 14 20:13:11 2004] [error] Optional hook test said: GET
> > /~victorng/mptest.py HTTP/1.1
> > [Sun Nov 14 20:13:11 2004] [error] Optional function test said: GET
> > /~victorng/mptest.py HTTP/1.1
> >
> > I have no idea what I'm doing wrong - anyone have a tip?
> >
> > vic
> > _______________________________________________
> > Mod_python mailing list
> > Mod_python at modpython.org
> > http://mailman.modpython.org/mailman/listinfo/mod_python
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>


More information about the Mod_python mailing list