Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-26-2008, 07:21 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 13

Rep: Reputation: 0
Help Configure Trac!

I just installed trac with yum install trac*
It installed all trac related products.
I created my project environment using trac-admin /home/<username>/trac initenv

Then the command tracd --port 8000 <path> works fine.
I tried to configure with mod_python. I put the following code in httpd.conf file:
<Location /mp>
SetHandler mod_python
PythonIntrepreter main_intrepreter
PythonHandler mod_python.testhandler

The above code worked fine by giving me a page full of information.
(mod_python test page).

Next i tried this one below in /etc/httpd/conf.d/trac.conf

<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /home/<username>/trac
I reloaded httpd and typed

It gave me Internal Server Error
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.2.8 (Fedora) Server at Port 80
Could any one help me on this!
Old 03-27-2008, 12:39 AM   #2
LQ Newbie
Registered: Mar 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Here's the err log
[Thu Mar 27 09:59:06 2008] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 27 09:59:06 2008] [notice] Digest: done
[Thu Mar 27 09:59:06 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Thu Mar 27 09:59:06 2008] [notice] mod_python: using mutex_directory /tmp
[Thu Mar 27 09:59:06 2008] [notice] Apache/2.2.8 (Unix) DAV/2 PHP/5.2.4 mod_python/3.3.1 Python/2.5.1 configured -- resuming normal operations
[Thu Mar 27 09:59:20 2008] [error] [client] mod_python (pid=2869, interpreter='main_interpreter', phase='PythonHandler', handler='trac.web.modpython_frontend'): Application error
[Thu Mar 27 09:59:20 2008] [error] [client] ServerName: ''
[Thu Mar 27 09:59:20 2008] [error] [client] DocumentRoot: '/var/www/html'
[Thu Mar 27 09:59:20 2008] [error] [client] URI: '/trac'
[Thu Mar 27 09:59:20 2008] [error] [client] Location: '/trac'
[Thu Mar 27 09:59:20 2008] [error] [client] Directory: None
[Thu Mar 27 09:59:20 2008] [error] [client] Filename: '/var/www/html/trac'
[Thu Mar 27 09:59:20 2008] [error] [client] PathInfo: ''
[Thu Mar 27 09:59:20 2008] [error] [client] Traceback (most recent call last):
[Thu Mar 27 09:59:20 2008] [error] [client] File "/usr/lib/python2.5/site-packages/mod_python/", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent)
[Thu Mar 27 09:59:20 2008] [error] [client] File "/usr/lib/python2.5/site-packages/mod_python/", line 1229, in _process_target\n result = _execute_target(config, req, object, arg)
[Thu Mar 27 09:59:20 2008] [error] [client] File "/usr/lib/python2.5/site-packages/mod_python/", line 1128, in _execute_target\n result = object(arg)
[Thu Mar 27 09:59:20 2008] [error] [client] File "/usr/lib/python2.5/site-packages/trac/web/", line 87, in handler\n
[Thu Mar 27 09:59:20 2008] [error] [client] File "/usr/lib/python2.5/site-packages/trac/web/", line 87, in run\n response = application(self.environ, self._start_response)
[Thu Mar 27 09:59:20 2008] [error] [client] File "/usr/lib/python2.5/site-packages/trac/web/", line 391, in dispatch_request\n env = _open_environment(env_path, run_once=run_once)
[Thu Mar 27 09:59:20 2008] [error] [client] File "/usr/lib/python2.5/site-packages/trac/web/", line 58, in _open_environment\n env_cache[env_path] = open_environment(env_path)
[Thu Mar 27 09:59:20 2008] [error] [client] File "/usr/lib/python2.5/site-packages/trac/", line 462, in open_environment\n env = Environment(env_path)
[Thu Mar 27 09:59:20 2008] [error] [client] File "/usr/lib/python2.5/site-packages/trac/", line 147, in __init__\n self.verify()
[Thu Mar 27 09:59:20 2008] [error] [client] File "/usr/lib/python2.5/site-packages/trac/", line 195, in verify\n fd = open(os.path.join(self.path, 'VERSION'), 'r')
[Thu Mar 27 09:59:20 2008] [error] [client] IOError: [Errno 13] Permission denied: '/home/sundar/trac/VERSION'
[Thu Mar 27 09:59:20 2008] [error] [client] File does not exist: /var/www/html/favicon.ico
The file VERSION has 777 permission and the owner is sundar not root

Last edited by ks.sundarrajan; 03-27-2008 at 12:42 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
any other web apps like Trac? veritas Linux - Software 1 03-20-2008 05:09 AM
Trac on Ubuntu?? ajeetraina Linux - Server 1 03-05-2008 03:20 AM
Issue during the TRAC installation??? ajeetraina Linux - Server 0 03-03-2008 07:06 AM
TRAC - Problem with backup zambiasi Linux - Software 1 07-06-2007 11:07 AM
Yast installed Trac and clearsilver, where? suguru SUSE / openSUSE 5 04-19-2006 03:33 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration