Apache Server configuration support - Apache: mod_python

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2004 > Apache: mod_python





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache: mod_python
Tim Adler

2004-01-23, 9:33 pm

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


Davide Bianchi

2004-01-23, 9:33 pm

Tim Adler <zero.kelvin@web.de> wrote:
quote:

> I'm trying to get Python to run as an Apache module (basically I would like
> to use ViewCVS).



You can use it as a CGI instead. It works for me.
Davide

--
| Q: How many Microsoft support staff does it take to change a light
| bulb? A: Four. One to ask "What is the registration number of the
| light bulb?", one to ask "Have you tried rebooting it?", another to
| ask "Have you tried reinstalling it?" and the last one to say "It
| must be your hardware because the light bulb in our office works
| fine..."
Tim Adler

2004-01-23, 10:33 pm

How is that done??

"Davide Bianchi" <davideyeahsure@onlyforfun.net> schrieb im Newsbeitrag
news:butiel$kuvi3$3@ID-18487.news.uni-berlin.de...
quote:

> Tim Adler <zero.kelvin@web.de> wrote:
like[QUOTE][color=darkred]
>
> You can use it as a CGI instead. It works for me.
> Davide
>
> --
> | Q: How many Microsoft support staff does it take to change a light
> | bulb? A: Four. One to ask "What is the registration number of the
> | light bulb?", one to ask "Have you tried rebooting it?", another to
> | ask "Have you tried reinstalling it?" and the last one to say "It
> | must be your hardware because the light bulb in our office works
> | fine..."




Davide Bianchi

2004-01-23, 10:33 pm

Tim Adler <zero.kelvin@web.de> wrote:
quote:

> How is that done??



I just dropped the cgi script in the cgi-bin directory and
gave the execute bit to it. End of story.

Davide

--
| Linux - It is now safe to turn on your computer. -- From a
| Slashdot.org post
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com