Apache + python

This is a discussion on Apache + python within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I'm trying to get python to work with apache and i'm getting this error bellow Python is ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-27-2007
tiagobecker@gmail.com
 
Posts: n/a
Default Apache + python

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

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:18 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0