Apache Server configuration support - Apache + python

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > September 2007 > Apache + python





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache + python
tiagobecker@gmail.com

2007-09-27, 1:39 pm

Hi,

I'm trying to get Python to work with apache and i'm getting this
error bellow

Python is working on the shell, added mod_python on apache, atarted
without any error,but whe n i try to access a .py page,
i get a 500 server error.

I googled for all afternoon yesterday, changed my apache.conf a
million times and nothing.


apache error_log:

[Wed Sep 26 18:52:22 2007] [error] make_obcallback: could not import
mod_python.apache.\n
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/mod_python/apache.py", line
616, in
<module>
make_table = _apache.make_table
AttributeError: 'module' object has no attribute 'make_table'
[Wed Sep 26 18:52:22 2007] [error] make_obcallback: Python path being
used
"['/usr/lib/python25.zip', '/usr/lib/python2.5',
'/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
'/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-
packages',
'/usr/lib/python2.5/site-packages', '/var/lib/python-support/
python2.5']".
[Wed Sep 26 18:52:22 2007] [error] python_handler: no interpreter
callback
found.
[Wed Sep 26 18:52:22 2007] [error] [client 172.19.10.36]
python_handler:
Can't get/create interpreter.
[Wed Sep 26 18:55:16 2007] [error] make_obcallback: could not import
mod_python.apache.\n
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/mod_python/apache.py", line
616, in
<module>
make_table = _apache.make_table
AttributeError: 'module' object has no attribute 'make_table'

apache config:

<Directory />
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
Options FollowSymLinks
AllowOverride None
</Directory>


Can someone help me? Thnx in advance for your time and help! :-)

Tiago Becker

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com