No subject

Fri Jan 9 21:58:29 EST 2004

    Internal Server Error

    The server encountered an internal error or misconfiguration and was     
    unable to complete your request.

Other normal web request seem to work fine. 
This is what the error logs show...

    [Wed Aug  2 20:58:57 2000] [notice] caught SIGTERM, shutting down
    [Wed Aug  2 20:59:02 2000] [notice] Apache/1.3.12 (Unix) configured
-- resuming
        normal operations
    'import site' failed; use -v for traceback
    make_obcallback(): could not import mod_python.apache.
    make_obcallback(): could not call init.
    [Wed Aug  2 20:59:45 2000] [error] [client] python_handler:
        make_obcallback returned no obCallBack!

The mod_python module sits in 


    (along with other .pc. .pyc modules)

In my httpd.conf (everything is there, no srm.conf, access.conf), I have 

    AddHandler python-program .py
    PythonDebug on
    PythonPath "sys.path+['/usr/local/lib/python1.5/mod_python']

this is within the <Directory..> directives for ~/apache/htdocs. is same as the "Hello World" example in the tutorial in

Also when in the Python interpreter, I try to load stuff manually, 

    >>> from mod_python import apache
    Traceback (innermost last):
    File "<stdin>", line 1, in ?
    File "/usr/local/lib/python1.5/mod_python/", line 18, in ?
        import _apache
    ImportError: No module named _apache

and does indeed have the line "import _apache"

Loading other standard python modules like "sys" works OK, hence I think

Apache - 1.3.12
Python 1.5, compiled from source, standard
    (both are installed in /usr/local)
system Linux Mandrake 7.0, 2.2.12 kernel 
Compaq box, P3.

Any help from anyone will be appreciated.

Hope I can get this working. Would love to use Python for a few things here.

Boh-heong Yap
Project Manager, eCommerce
				bohheong at a leading pan-Asian Internet company,
with focus on: content, advertising and e-commerce.

More information about the Mod_python mailing list