Trac Installation

47 views
Skip to first unread message

sachin

unread,
Mar 4, 2009, 7:20:13 AM3/4/09
to Trac Users
Hi All

I am trying to install trac on centOS-5.2 system. I did according to
the installation process trac installation is done successfully but
not able to get the frontpage ???

http://localhost:8000/
Available Projects

http://localhost:8000/trac
Environment not found

Please can anyone help me where am i going wrong ?

Ice Polar

unread,
Mar 4, 2009, 9:14:03 AM3/4/09
to trac-...@googlegroups.com
Hi,
is it set correct, the permission to read and write to the project folder? "sudo chown -R www-data /var/trac " or something like that if you use apache2 which works with user 'www-data'.

Good luck
  Ice



2009/3/4 sachin <sachin....@gmail.com>

Olemis Lang

unread,
Mar 4, 2009, 9:59:17 AM3/4/09
to trac-...@googlegroups.com
On Wed, Mar 4, 2009 at 7:20 AM, sachin <sachin....@gmail.com> wrote:
>
> Hi All
>

Hello there ...

> I am trying to install trac on centOS-5.2 system. I did according to
> the installation process trac installation is done successfully but
> not able to get the frontpage ???
>
> http://localhost:8000/
>  Available Projects
>
> http://localhost:8000/trac
> Environment not found
>

What are your project's names ? Where are they (... I mean in the FS
...) ? How d'u run trac ? ... and so on ... ;)

--
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
Clic y al Sur: Conociendo a Ubuntu Linux

Sachin Murudkar

unread,
Mar 5, 2009, 4:29:07 AM3/5/09
to trac-...@googlegroups.com
Hi
Thanks for the promp reply !!!
Below mentioned is my configuration and configuration files, I tried restarting http but it is giving me this error mentioned below.
Starting httpd: httpd: Syntax error on line 200 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_dav_svn.so into server: /usr/local/lib/libsvn_subr-1.so.0: undefined symbol: apr_hash_clear

To get access to trac
From backend I am trying with  tracd --port 8000 /srv/trac/testproject which gives me ...
10.0.2.53 - - [05/Mar/2009 14:38:05] "GET /testproject HTTP/1.1" 200 -
10.0.2.53 - - [05/Mar/2009 14:38:05] "GET /testproject/chrome/common/css/trac.css HTTP/1.1" 200 -
10.0.2.53 - - [05/Mar/2009 14:38:05] "GET /testproject/chrome/common/css/wiki.css HTTP/1.1" 200 -

But i am able to get the frontend in the browser with http://localhost:8000/testproject/

Also i have attached the screenshot of trac below for your reference please let me know where i am going wrong ...

 trac-admin /srv/trac/newproject initenv
Creating a new Trac environment at /srv/trac/newproject
Project Name [My Project]> newproject
Database connection string [sqlite:db/trac.db]>
Repository type [svn]>
Path to repository [/path/to/repos]> /srv/svn/

trac.conf
<Location /trac/testproject>
        SetHandler mod_python
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /srv/trac/testproject
        PythonOption TracUriRoot /trac/testproject
</Location>
<Location "/trac/testproject/login">
        AuthType Basic
        AuthName "trac"
        AuthUserFile /srv/trac/testproject.htpasswd
        Require valid-user
</Location>

subversion.conf
<Location /svn/testproject>
        DAV svn
        SVNPath /srv/svn/testproject>
        AuthType Basic
        AuthName "testproject Repository"
        AuthzSVNAccessFile /srv/svn/svn-acl-conf
        AuthUserFile /srv/svn/testproject.htpasswd
        Require valid-user
</Location>
--
Thanks & Regards

Sachin Murudkar
Sr. Specialist Solutions

DUX Soft Pvt. Ltd
"Complexity Simplified"
Mobile  : +91 9819565900
Fax     : +91 22 4057 2894
Board   : +91 22 4057 2800

Email : sac...@duxsoft.com
www.DUXSoft.com

Olemis Lang

unread,
Mar 6, 2009, 9:05:17 AM3/6/09
to trac-...@googlegroups.com
On Thu, Mar 5, 2009 at 4:29 AM, Sachin Murudkar <sac...@duxsoft.com> wrote:
> Hi
> Thanks for the promp reply !!!

:) ... That's what we are here for ... ;)

> Below mentioned is my configuration and configuration files, I tried
> restarting http but it is giving me this error mentioned below.
> Starting httpd: httpd: Syntax error on line 200 of
> /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_dav_svn.so
> into server: /usr/local/lib/libsvn_subr-1.so.0: undefined symbol:
> apr_hash_clear
>

IMO ... this is specific to httpd + svn config, so I am not sure about
following this here ...

> To get access to trac

> 10.0.2.53 - - [05/Mar/2009 14:38:05] "GET /testproject HTTP/1.1" 200 -

The first time you told us you have tried different addresses (see below) ...

>> > http://localhost:8000/
>> >  Available Projects
>> >
>> > http://localhost:8000/trac
>> > Environment not found
>> >

There is something weird here ... since if you are not specifying -e
to tracd ... 8O ... and you should not be able to see `Available
Projects` page, and so on ...

>
> Also i have attached the screenshot
> of trac below for your reference please
> let me know where i am going wrong ...
>
>  trac-admin /srv/trac/newproject initenv
> Creating a new Trac environment at /srv/trac/newproject
> Project Name [My Project]> newproject
> Database connection string [sqlite:db/trac.db]>
> Repository type [svn]>
> Path to repository [/path/to/repos]> /srv/svn/
>

Here you mention newproject ...

> trac.conf
> <Location /trac/testproject>
> SetHandler mod_python
> PythonHandler trac.web.modpython_frontend
> PythonOption TracEnv /srv/trac/testproject

... and here you mention testproject ... besides the location in
httpd.conf does not match the paths you are requesting from you
browser (or equivalent ;) ... so I don't know exactly how can I help
you ... Besides IMO this should not display `Available Projects` page
...

Could you pls help me (us) to understand what you'r doing ? or CMIIW
... and yes, this is a support request ... :P

Good luck ... :)

Sachin Murudkar

unread,
Mar 6, 2009, 10:29:30 AM3/6/09
to trac-...@googlegroups.com
Hi


I managed to solve the problem and my TRAC is working successfully now.

Thanks to all of U !!!!!

Regards

Sachin M
Reply all
Reply to author
Forward
0 new messages