Dan Eloff
dan.eloff at gmail.com
Sun Jan 15 17:32:10 EST 2006
I installed mod_python on my XP pro system with apache 2.0.55 and python 2.4.2 I get an internal server error when trying to load any .py I added this to the bottom of my conifg file, and added the load module statement as well. <Directory /> AddHandler mod_python .py PythonHandler mptest PythonDebug On </Directory> The module seems to be loading correctly. mod_python also seems to be installed correctly, when I try and import mod_python from an interpreter it says it can't find _apache. The relevant lines from the log file are pasted below. The url I try to access is localhost/test.py, which doesn't exist, but I don't think that matters to mod_python, it will try to handle it anyway, but never seems to get that far. What are some things I should check or some things I can try to get it working? Thanks, -Dan [Sun Jan 15 13:53:32 2006] [notice] Apache/2.0.55 (Win32) mod_python/3.2.2b Python/2.4.2 PHP/5.1.1 configured -- resuming normal operations [Sun Jan 15 13:53:32 2006] [notice] Server built: Oct 9 2005 19:16:56 [Sun Jan 15 13:53:32 2006] [notice] Parent: Created child process 2716 [Sun Jan 15 13:53:32 2006] [notice] mod_python: Creating 8 session mutexes based on 0 max processes and 10 max threads. [Sun Jan 15 13:53:32 2006] [notice] Child 2716: Child process is running [Sun Jan 15 13:53:32 2006] [notice] Child 2716: Acquired the start mutex. [Sun Jan 15 13:53:32 2006] [notice] Child 2716: Starting 10 worker threads. [Sun Jan 15 13:57:02 2006] [error] make_obcallback: could not import mod_python.apache.\n [Sun Jan 15 13:57:02 2006] [error] python_handler: no interpreter callback found. [Sun Jan 15 13:57:02 2006] [error] [client 127.0.0.1] python_handler: Can't get/create interpreter.
|