Mark,

Thanks very much to you and Emmanuel Blot for helping with this, and my apologies again for the multiple posts. For the longest time I couldn't read any replies, or my own posts.

I am now able to use tracd to access the wiki and my subversion repository for the project I'm trying to set up. However, I'm now having trouble switching over to using apache (2.0.59). Here's what my httpd.conf file says:


#####
# Setting up the webserver for project subversion serving
# and trac system

Alias /project /home/sherwood/projectTrac

ScriptAlias /trac /usr/local/share/trac/cgi-bin/trac.cgi

<Location /trac>
SetEnv TRAC_ENV "/home/sherwood/projectTrac"
</Location>

<Location /svn>
DAV svn
SVNPath /home/sherwood/projectRepository
AuthType Basic
AuthName "project Subversion Repository"
AuthUserFile /home/sherwood/projectProjectManagement/svn-auth-file
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>


# We'll just use the CGI method for accessing trac

<Location "/trac/login">
AuthType Basic
AuthName "Trac"
AuthUserFile /home/sherwood/projectManagement/trac.htpasswd
Require valid-user
</Location>

Apache runs under User apache, Group apache.
I've made an additional group, tracproject, to which apache belongs, and I've changed the group ownership and permissions on the projectTrac directory and subdirectories so that it is world readable/ executable and group writable.

Accessing cam.cornell.edu/svn works fine to browse the subversion repository, and authentication works.

When I try to access the project trac pages, cam.cornell.edu/project

I get

Forbidden

You don't have permission to access /project/ on this server.

The apache log file says

[Wed Jan 17 09:57:34 2007] [error] [client 128.84.216.128] Directory index forbidden by rule: /home/sherwood/projectTrac/ [Wed Jan 17 09:57:37 2007] [error] [client 128.84.216.128] Directory index forbidden by rule: /home/sherwood/projectTrac/ [Wed Jan 17 10:27:10 2007] [error] [client 128.84.216.128] Directory index forbidden by rule: /home/sherwood/projectTrac/htdocs/


There are additional directives that look like

Alias /trac/chrome/common /usr/local/share/trac/htdocs
<Directory "/usr/local/share/trac/htdocs">
Order allow,deny
Allow from all
</Directory>

Alias /trac/chrome/site /home/sherwood/projectTrac/htdocs
<Directory "/home/sherwood/projectTrac/htdocs">
Order allow,deny
Allow from all
</Directory>

from the instructions, but I'm not clear on what they're doing.

How have I misconfigured apache? I'm not very experienced with it, so any guidance would be appreciated.

Erik Sherwood
Center for Applied Mathematics  |       Phone:  (607) 255-4195
657 Rhodes Hall                                 |       Fax:            (607) 
255-9860
Cornell University                              |       Email:  [EMAIL 
PROTECTED]
Ithaca, NY 14853                                        |       Web:    
http://www.cam.cornell.edu/~sherwood



On Jan 15, 2007, at 11:03 PM, Matt Good wrote:


On Jan 12, 9:45 am, "Erik Sherwood" <[EMAIL PROTECTED]> wrote:
My apologies if this posts multiple times -- it didn't seem to show up
in google groups when I posted before.

I am trying to install trac on RH Enterprise 4. I have built the
necessary components from source in /usr/local, rather than relying on
the RH packages.

Well, I can't speak specifically on RHE4 packages, but generally it's
easier to rely on the packages to get things right.  Especially
compiling Subversion and the Python bindings to it causes people much
confusion.  So, unless there's a good reason not to, the packages will
probably make this process easier.

I am using trac-0.10.3, Python-2.4.4, subversion-1.4.2, swig-1.3.25,
sqlite-3.3.8, clearsilver-0.10.4.

I created a test subversion repository and trac environment, and set up
the trac environment using

trac-admin /home/sherwood/public_html/testproject initenv

In interactive mode, I set trac to use svn as the repository type, set
to the test repository.

When I run

tracd --port 8000 /home/sherwood/public_html/testproject

and then connect to localhost:8000, I see the correct listing of
available projects:

Available Projects

    * testproj

but clicking on that link gives me this error from trac:

...snip...
TracError: Unsupported version control system "svn"

What have I done wrong?

Trac cannot find the Subversion Python bindings.  You'll need to check
the PYTHONPATH to make sure the bindings are locatable, and check
LD_LIBRARY_PATH, or ld.so.conf to make sure that any libraries
installed into /usr/local are loadable.

-- Matt Good


>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to