how to configure Trac with Xampp

Problems with the Linux version of XAMPP, questions, comments, and anything related.

how to configure Trac with Xampp

Postby dongkeu » 21. April 2008 13:00

I'm using FC5 ( Fedora Core 5) and Xampp 1.6.6 for Linux, and Trac 0.11dev, Subversion 1.3.2. Python 2.4.
and now how to configure Trac with Apache on Xampp for Linux using mod_python ?

The first i conf trac with xampp, using mod_python (install mod_python with apache on xampp) and configure.
created tracproject in htdocs's Xampp and chown -R for directory project name. and conf on httpd.conf on Xampp:
<Location>
....
</Location>

I restart Xampp, and run http://servername/projectname.

nothing error in browser but in error_log file' xampp:
//
[Mon Apr 21 14:42:49 2008] [notice] child pid 11778 exit signal Aborted (6)
httpd: Objects/stringobject.c:105: PyString_FromString: Assertion `str != ((void *)0)' failed.
[Mon Apr 21 17:52:02 2008] [notice] child pid 12411 exit signal Aborted (6)
//
dongkeu
 
Posts: 2
Joined: 18. April 2008 04:12

Postby Oliv7 » 21. April 2008 13:53

Hi dongkeu,

I am also intrested in setting trac for xampp.

But I am sticked with apache not found error after mod_python install.

see http://community.apachefriends.org/f/viewtopic.php?t=29382

If you could explain how did you made your mod_python ?

Thanks,

@+Oliv
Oliv7
 
Posts: 12
Joined: 05. April 2008 12:11
Location: Le Havre France

Postby dongkeu » 21. April 2008 17:30

Oliv7 wrote:Hi dongkeu,

I am also intrested in setting trac for xampp

But I am sticked with apache not found error after mod_python install.

see http://community.apachefriends.org/f/viewtopic.php?t=29382

If you could explain how did you made your mod_python ?

Thanks,

@+Oliv

Are you load module on Apache'Xampp yet ?
mod_python on "/opt/lampp/modules" directory
LoadModule python_module modules/mod_python.so
and test mod_python by:

<Location /test_mod>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler mod_python.testhandler
PythonDebug on
</Location>

http://servername/test_mod/file.php
dongkeu
 
Posts: 2
Joined: 18. April 2008 04:12

Postby Oliv7 » 23. April 2008 19:58

Hi,

when I point http://localhost/test_mod/file.php, I have 500 internal Server Error
with the following in the appache error log:

ImportError: No module named mod_python.apache
[Wed Apr 23 18:50:58 2008] [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', '/usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site-packages/gst-0.10', '/var/lib/python-support/python2.5', '/usr/lib/python2.5/site-packages/gtk-2.0', '/var/lib/python-support/python2.5/gtk-2.0']".
[Wed Apr 23 18:50:58 2008] [error] get_interpreter: no interpreter callback found.
[Wed Apr 23 18:50:58 2008] [error] [client 127.0.0.1] python_handler: Can't get/create interpreter.
[Wed Apr 23 18:51:45 2008] [error] make_obcallback: could not import mod_python.apache.\n


It is a problem of founding site-packages in the python path.

The problem is that the lib path : /opt/lampp/lib is not found by mod-python,

and I have other package of python from the ubuntu default install.

For the command I passed through the compilation of python and mod_python you can see previous post:
http://community.apachefriends.org/f/viewtopic.php?t=29382
Oliv7
 
Posts: 12
Joined: 05. April 2008 12:11
Location: Le Havre France


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 8 guests