FAQ
Hi all,
i got some problems running mod_python with apache under windows.
I am using python 2.2 and apache 1.3.26.
As written in the manual i configured httpd.conf like this:

LoadModule python_module modules/mod_python.dll

AddModule mod_python.c

<Directory "C:/Programme/Apache Group/Apache/python">
AddHandler python-program .py
PythonHandler mptest
PythonDebug on
</Directory>

I copied the mod_python.dll to C:/Python22/lib/mod_python.

The Apache server is starting with "Apache/1.3.26 (Win32) mod_python/2.7.6
Python/2.2.1 running..."
So i guess it should be working....

The test script looks like this:

#! C:/Python22/python.exe

from mod_python import apache

def handler(req):
req.send_http_header()
req.write("<html><body>Hello World!</body></html>")
return apache.OK

my error.log (last entry):
[Sat Sep 21 18:00:13 2002] [error] [client 192.168.1.99] python_handler:
make_obcallback returned no obCallBack!

i've read several newsgroups and googled a lot but i didn't found a working
solution
Thanks a lot in advance...
christopher knievel

Search Discussions

  • Donald Lessau at Sep 25, 2002 at 9:11 am
    hi christopher,

    i've got exactly the same problem... Did you find a solution in the
    meantime?

    thanks
    Donald

    "christopher knievel" <ch_knievel at gmx.de> schrieb im Newsbeitrag
    news:ami5rr$des$04$1 at news.t-online.com...
    Hi all,
    i got some problems running mod_python with apache under windows.
    I am using python 2.2 and apache 1.3.26.
    As written in the manual i configured httpd.conf like this:

    LoadModule python_module modules/mod_python.dll

    AddModule mod_python.c

    <Directory "C:/Programme/Apache Group/Apache/python">
    AddHandler python-program .py
    PythonHandler mptest
    PythonDebug on
    </Directory>

    I copied the mod_python.dll to C:/Python22/lib/mod_python.

    The Apache server is starting with "Apache/1.3.26 (Win32) mod_python/2.7.6
    Python/2.2.1 running..."
    So i guess it should be working....

    The test script looks like this:

    #! C:/Python22/python.exe

    from mod_python import apache

    def handler(req):
    req.send_http_header()
    req.write("<html><body>Hello World!</body></html>")
    return apache.OK

    my error.log (last entry):
    [Sat Sep 21 18:00:13 2002] [error] [client 192.168.1.99] python_handler:
    make_obcallback returned no obCallBack!

    i've read several newsgroups and googled a lot but i didn't found a working
    solution
    Thanks a lot in advance...
    christopher knievel
  • Christopher knievel at Sep 25, 2002 at 4:01 pm
    Hi Donald,
    i still didn't find a working solution, but i am trying now with a
    standalone apache server installation
    and hey there are some other error messages....but i am still trying :)
    regards,
    christopher knievel
    "Donald Lessau" <nc-lessaudo at netcologne.de> schrieb im Newsbeitrag
    news:amrvgp$lfk$1 at newsreader2.netcologne.de...
    hi christopher,

    i've got exactly the same problem... Did you find a solution in the
    meantime?

    thanks
    Donald

    "christopher knievel" <ch_knievel at gmx.de> schrieb im Newsbeitrag
    news:ami5rr$des$04$1 at news.t-online.com...
    Hi all,
    i got some problems running mod_python with apache under windows.
    I am using python 2.2 and apache 1.3.26.
    As written in the manual i configured httpd.conf like this:

    LoadModule python_module modules/mod_python.dll

    AddModule mod_python.c

    <Directory "C:/Programme/Apache Group/Apache/python">
    AddHandler python-program .py
    PythonHandler mptest
    PythonDebug on
    </Directory>

    I copied the mod_python.dll to C:/Python22/lib/mod_python.

    The Apache server is starting with "Apache/1.3.26 (Win32)
    mod_python/2.7.6
    Python/2.2.1 running..."
    So i guess it should be working....

    The test script looks like this:

    #! C:/Python22/python.exe

    from mod_python import apache

    def handler(req):
    req.send_http_header()
    req.write("<html><body>Hello World!</body></html>")
    return apache.OK

    my error.log (last entry):
    [Sat Sep 21 18:00:13 2002] [error] [client 192.168.1.99] python_handler:
    make_obcallback returned no obCallBack!

    i've read several newsgroups and googled a lot but i didn't found a working
    solution
    Thanks a lot in advance...
    christopher knievel

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedSep 21, '02 at 4:13p
activeSep 25, '02 at 4:01p
posts3
users2
websitepython.org

People

Translate

site design / logo © 2022 Grokbase