Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mod_python hell in Apache/Windows XP

9 views
Skip to first unread message

Tim

unread,
Jun 21, 2003, 3:19:30 AM6/21/03
to
I've read all the posts and tried just about everything. No matter what,
Apache says it can't find the mod_python module!

Please help :-)

Tim


Peter Brown

unread,
Jun 21, 2003, 4:37:25 AM6/21/03
to
sounds familiar - if u work it out pls post here

"Tim" <tim.h...@rogers.com> wrote in message
news:6GTIa.32066$111....@news04.bloor.is.net.cable.rogers.com...

Jarosław Zabiełło

unread,
Jun 21, 2003, 8:39:30 AM6/21/03
to
On Sat, 21 Jun 2003 07:19:30 GMT, "Tim" <tim.h...@rogers.com>
wrote:

> I've read all the posts and tried just about everything. No matter what,
> Apache says it can't find the mod_python module!

Get the installer from
http://www.modpython.org/ and run it.

Your mod_python.so should be instaled at YourApachePath/modules

Add the follwing lin to your httpd.conf file:

LoadModule python_module modules/mod_python.so

Restart Apache. It works.

Tim

unread,
Jun 21, 2003, 9:59:21 AM6/21/03
to
Thanks for your encouragement. I was making attempts until 3am last night
with no luck. Somehow all the install/uninstalls must have got things
confused. I uninstalled everything, and then:

1. installed apache
2. Installed Python 2.2
3. Installed mod_py

did the little test program and voila -> "Hello World."

Any advice on the best way to configure for CGI is much appreciated...

Thanks again,
T

PS: the weird thing is that the mod_python installer said it could not find
the module os (wrong!--it's there), and yet everything is working...weird!
:-)

"Jarosław Zabiełło" <webm...@watchtowerDOTcom.pl> wrote in message
news:t7k8fv4mtcju19oeu...@4ax.com...

Peter Brown

unread,
Jun 21, 2003, 11:23:36 PM6/21/03
to
Same here,

Uninstalled everything, and then reinstalled using Python 2.2.3 instead of
Puython 2.3 and all works fine.

Peter


"Tim" <tim.h...@rogers.com> wrote in message

news:ZwZIa.162283$3Sm....@news01.bloor.is.net.cable.rogers.com...

Jarosław Zabiełło

unread,
Jun 21, 2003, 11:31:16 PM6/21/03
to
On Sat, 21 Jun 2003 13:59:21 GMT, "Tim" <tim.h...@rogers.com>
wrote:

>Any advice on the best way to configure for CGI is much appreciated...

You must check and add missing lines to your Apache httpd.conf file:

LoadModule python_module modules/mod_python.so

SetHandler python-program
PythonHandler mod_python.cgihandler

0 new messages