Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Apache: mod_python

Reply
Thread Tools

Apache: mod_python

 
 
Tim Adler
Guest
Posts: n/a
 
      01-24-2004
Hello everyone!

Perhaps this is not the right place to ask, but I cannot find a better one.
I'm trying to get Python to run as an Apache module (basically I would like
to use ViewCVS).

I installed mod_python and added this stuff to the httpd.conf

LoadModule python_module libexec/mod_python.so
AddHandler python-program .py
PythonHandler mod_python.publisher
PythonDebug OnStill when I access a given .py file (the one that ViewCVS
suggests), I get an 500-error and the Apache states in the error.log that it
cannot import a "mod_python.apache".Can somebody help me ?Thx, Tim


 
Reply With Quote
 
 
 
 
David M. Wilson
Guest
Posts: n/a
 
      01-24-2004
"Tim Adler" <> wrote...

> Still when I access a given .py file (the one that ViewCVS
> suggests), I get an 500-error and the Apache states in the error.log that it
> cannot import a "mod_python.apache".Can somebody help me ?Thx, Tim


Did you follow the mod_python install instructions to the letter? The
above suggests an incomplete install. Failling that, have you manually
upgraded Python on the machine? mod_python may be linked against one
version of Python, but may have it's package installed in the library
directory of another.

HTH,


David.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_python.so is garbled mod_python.so is garbled blbmdsmith Python 1 12-14-2006 12:15 AM
Mod_Python and ExpatPy David Connell Python 0 07-29-2003 05:01 AM
Apache mod_python and Sessions Markus Schaber Python 7 07-08-2003 05:55 PM
mod_python/good documentation? Tim Python 1 07-07-2003 02:16 AM
Mod_python xml parsing problem Mike Medland Python 0 07-01-2003 08:08 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57