Redmine + Apache + Passenger + Subversion == Help!

Added by Joe Glenn about 12 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>

   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

I made /var/svn with root:www-data owner and chmod to 0750 as per wiki.. in /usr/lib/perl5/Apache/Authn/

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?


<VirtualHost *:80>


   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;" 
   ## 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 /svn-private>
   DAV svn
   SVNParentPath "/var/svn" 
   Order deny,allow
   Deny from all
   # only allow reading orders
       Allow from SERVERIP

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


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

./reposman.rb -s /var/svn -r -o www-data -u

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..


Replies (1)

RE: Redmine + Apache + Passenger + Subversion == Help! - Added by Joe Glenn about 12 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
(not sure what login to use on that page)