[mod_python] apache + python + mod_python: path error

Глотов Артем glart at infoline.su
Sat Oct 7 15:19:57 EDT 2006


Hello!
   
I'm trying to install apache, python and mod_python, but to the my 
homedir, not to  
the /usr/local. During configuration I used --prefix directive:  
Python:  
./configure   
   --enable-shared   
   --without-threads   
   --prefix=/home/glar/project/python  
Apache:  
./configure   
   --enable-rule=SHARED_CORE   
   --enable-module=so   
   --prefix=/home/glar/project/apache  
and Mod_python:  
./configure  
   --with-apxs=/home/glar/project/apache/bin/apxs  
   --with-apache=../apache_1.3.33  
   --with-python=../Python-2.4.3  
   --prefix=/home/glar/project/python/lib/python2.4
 
But when I call the test example, apache generates 500 Internal Error, 
in the
error_log there are 3 new strings:
[Fri Oct  6 17:36:03 2006] [notice] Accept mutex: sysvsem (Default: 
sysvsem)
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
[Fri Oct  6 17:36:09 2006] [error] [client 127.0.0.1] python_handler: 
make_obcallback
returned no obCallBack!
 
I think that mod_python can't find files in the directory  
'/home/glar/project/python/lib/python2.4/site-package/mod_python', I 
tried to add it
to the PythonPath directive in the httpd.conf and create PYTHONHOME 
variable, no
effect  :(
 
What is wrong in my actions?
 
Artyom.



More information about the Mod_python mailing list