[mod_python] trouble instaling mod_python over apache 1.3.31

Gerardo Rodriguez Gutierrez jerryfic_21 at hotmail.com
Tue Jul 20 12:41:34 EDT 2004


I did what it says the FAQ about it, and put in ennvars 
LD_PRELOAD=/usr/lib/libc_r.so

export LD_PRELOAD , and when restart apache it says me:

[warn] Loaded DSO libexec/mod_python.so uses plain Apache 1.3 API, this 
module might crash under EAPI! (please recompile it with -DEAPI)

???

when I run a py program, mod_python display an error

this is my apache conf file

LoadModule python_module      libexec/mod_python.so

<Directory "/usr/local/apache/htdocs/clientes">
AddHandler python-program .py
PythonHandler hello
PythonDebug On
Order allow,deny
Allow from all
</Directory>

and my python file is: hello.py

from mod_python import apache

def handler(req):
     req.content_type = "text/html"
     req.write("Hello World! Blarg!")
     return apache.OK

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



More information about the Mod_python mailing list