re, (delete previous email, sorry for sending a concept)
On Monday 10 of October 2005 23:14, Jonas Meurer wrote: > > Description: When both php and python is enabled in apache configuration, > > python scripts trying to create a cursor yields segmentation fault. > > Everything is okay when run from shell (i.e. not via web/apache). > > does this change when you enable only python in apache, and disable php? > and how does apache run the python scripts? do you use mod-python or do > you run them directly as CGIs? definitely, when i disable php, restart apache and run the script everything is okay - database connection works fine. apache has mod-python loaded (no cgi was set, and i've this added in apache configuration: AddHandler mod_python .py PythonHandler mod_python.publisher PythonDebug On > can you provide an example script that segfaults? of course: import MySQLdb def test (): msq=MySQLdb.connect(user="me",passwd="somepass",db="test"); c=msq.cursor(); c.execute ("select * from tblt"); return c.fetchone(); I call it from browser like: http://localhost/exp/test.py/test and the browser screen stays blank (while one tuple from the table appears when php is not loaded into apache) Ales -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]