LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
Help Configure Trac!


Hi,
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:
Quote:
<Location /mp>
SetHandler mod_python
PythonIntrepreter main_intrepreter
PythonHandler mod_python.testhandler
</Location>
http://127.0.0.1/mp

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

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

It gave me Internal Server Error
Quote:
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 127.0.0.1 Port 80
Could any one help me on this!
 
Old 03-27-2008, 12:39 AM   #2
ks.sundarrajan
LQ Newbie
 
Registered: Mar 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Here's the err log
Quote:
[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 127.0.0.1] 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 127.0.0.1] ServerName: 'bssclnt03.baryons.in'
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] DocumentRoot: '/var/www/html'
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] URI: '/trac'
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] Location: '/trac'
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] Directory: None
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] Filename: '/var/www/html/trac'
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] PathInfo: ''
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] Traceback (most recent call last):
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent)
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target\n result = _execute_target(config, req, object, arg)
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target\n result = object(arg)
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/trac/web/modpython_frontend.py", line 87, in handler\n gateway.run(dispatch_request)
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/trac/web/wsgi.py", line 87, in run\n response = application(self.environ, self._start_response)
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 391, in dispatch_request\n env = _open_environment(env_path, run_once=run_once)
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 58, in _open_environment\n env_cache[env_path] = open_environment(env_path)
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/trac/env.py", line 462, in open_environment\n env = Environment(env_path)
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/trac/env.py", line 147, in __init__\n self.verify()
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/trac/env.py", line 195, in verify\n fd = open(os.path.join(self.path, 'VERSION'), 'r')
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] IOError: [Errno 13] Permission denied: '/home/sundar/trac/VERSION'
[Thu Mar 27 09:59:20 2008] [error] [client 127.0.0.1] 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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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