[mod_python] Mod_python and Apache problems

Robert Lilly rclilly at lvcm.com
Sat Aug 3 22:04:45 EST 2002


Hello all,

I'm trying to get Mod_python to work with Apache/1.3.26 (Win32)
mod_python/2.7.6 Python/2.2.1 PHP/4.22 on Windows 2000 Professional.

I get the following error when I try to access the mptest.py page:

--
 [Sat Aug 03 21:19:55 2002] [warn] Loaded DSO modules/mod_python.dll uses
plain Apache 1.3 API, this module might crash  under EAPI! (please recompile
it with -DEAPI)
 make_obcallback(): could not import mod_python.apache.
 make_obcallback(): could not call init.
 make_obcallback(): could not import mod_python.apache.
 make_obcallback(): could not call init.
 make_obcallback(): could not import mod_python.apache.
 make_obcallback(): could not call init.
 make_obcallback(): could not import mod_python.apache.
 make_obcallback(): could not call init.
 make_obcallback(): could not import mod_python.apache.
 make_obcallback(): could not call init.
 [Sat Aug 03 21:20:07 2002] [error] [client 192.168.123.116] python_handler:
make_obcallback returned no obCallBack!
--

My httpd.conf contains the following:

    LoadModule python_module modules/mod_python.dll

    AddModule mod_python.c

    <Directory "E:/My Documents/RCL Enterprises/Web/htdocs/python">
            AddHandler python-program .py
            PythonHandler mptest
            PythonDebug on
    </Directory>


I try to access it using http://localhost/python/mptest.py and I get a 505
Internal Server Error. The error log contains the above.

Any clues about what I'm doing wrong? Does anyone have any pointers on
getting Python to work under Apache on Windows 2000?

TIA,

Robert Lilly
Apache/Python/PHP newbie!
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002




More information about the Mod_python mailing list