Project

General

Profile

Redmine + Apache + Passenger + Subversion == Help!

Added by Joe Glenn almost 15 years ago

Ubuntu 8.04 LTS

Ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux]
Ruby Enterprise Edition 20090421

Apache/2.2.8 (Ubuntu)
Passenger 2.2.2

Redmine Revision 2731

Subversion 1.4.6 (r28521)

To start here's my redmine vhost configuration. Redmine works great served under passenger.

/var/www/redmine is owned by redmine:redmine

<VirtualHost *:80>
   ServerAdmin admin@server.org
   ServerName red.server.org

   DocumentRoot /var/www/redmine/public

   LogLevel warn
   ErrorLog /var/www/redmine/log/error.log
   CustomLog /var/www/redmine/log/access.log combined

   <Directory /var/www/redmine/public>
      Options FollowSymLinks
      AllowOverride None
      Order allow,deny
      allow from all
   </Directory>
</VirtualHost>

I made /var/svn with root:www-data owner and chmod to 0750 as per redmine.org wiki..

Redmine.pm in /usr/lib/perl5/Apache/Authn/Redmine.pm

I had the following location blocks in /etc/apache2/conf.d/svnredmine.conf and the vhost as only ServerName and ServerAdmin but moved here to try it out.. still not working.. not sure if there needs to be a DocumentRoot for the vhost?

/etc/apache2/sites-available/svn.redmine

<VirtualHost *:80>

   ServerName svn.server.org
   ServerAdmin admin@server.org

   LogLevel warn
   ErrorLog /var/www/redmine/log/svn.error.log
   CustomLog /var/www/redmine/log/svn.access.log combined

   PassengerEnabled Off

PerlLoadModule Apache::Authn::Redmine

<Location /svn>
   DAV svn
   SVNParentPath "/var/svn" 

   AuthType Basic
   AuthName redmine
   Require valid-user

   PerlAccessHandler Apache::Authn::Redmine::access_handler
   PerlAuthenHandler Apache::Authn::Redmine::authen_handler

   ## for mysql
   RedmineDSN "DBI:mysql:database=redmine;host=svn.server.org" 
   ## for postgres
   # RedmineDSN "DBI:Pg:dbname=databasename;host=my.db.server" 

   RedmineDbUser "redmine" 
   RedmineDbPass "PASSWORD" 
   ## Optional where clause (fulltext search would be slow and
   ## database dependant).
   # RedmineDbWhereClause "and members.role_id IN (1,2)" 
   ## Optional credentials cache size
   # RedmineCacheCredsMax 50
</Location>

<Location /svn-private>
   DAV svn
   SVNParentPath "/var/svn" 
   Order deny,allow
   Deny from all
   # only allow reading orders
    <Limit GET PROPFIND OPTIONS REPORT>
       Allow from SERVERIP
    </Limit>
</Location>

<Location /sys>
   Order allow,deny
   Allow from SERVERIP
</Location>

</VirtualHost>

then I ran the following as non-root user from /var/www/redmine/ and get 404's

./reposman.rb -s /var/svn -r red.server.org -o www-data -u http://svn.server.org/svn

I'm not sure where to go from here.. I've confused myself from trying different things and reading outdated and incomplete how-to's.. Please help..

Joe


Replies (1)

RE: Redmine + Apache + Passenger + Subversion == Help! - Added by Joe Glenn almost 15 years ago

Oops.. forgot to mention..

I turned on WS in administration - settings - repositories.

Created a project named test and on the repository page url http://svn.server.org/svn/test
(not sure what login to use on that page)

    (1-1/1)