Forum: Ruby on Rails subversion help!

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F10f95926f620318a71c102f207649b7?d=identicon&s=25 Manish Shah (Guest)
on 2006-03-07 02:17
(Received via mailing list)
I created a subversion repository on my new vps and i'm trying to setup
rails app there.  However i keep getting this error:

subversion/libsvn_subr/io.c:2516: (apr_err=13)
svn: Can't create directory
Permission denied

How do i fix this?  I know others have had this before, so i would
appreciate some help.
3dd4b52a0946bd698b1d1635a46ea3a3?d=identicon&s=25 Francois Beausoleil (Guest)
on 2006-03-07 03:14
(Received via mailing list)
Hi !

2006/3/6, Manish Shah <>:
> How do i fix this?  I know others have had this before, so i would
> appreciate some help.

Your permissions are hosed on your repository.

The Subversion book talks about permissions a bit in this section:

In the end, it all depends on your server access method.  If you use
Apache/WebDAV, chmod -R all files in the repository so that your
Apache user can read/write to the repository.  Also make sure the
folders are executable (makes them traversible).

Hope that helps !
F10f95926f620318a71c102f207649b7?d=identicon&s=25 Manish Shah (Guest)
on 2006-03-07 03:23
(Received via mailing list)
i see that all the directories in the repository are owned by root.
This is
most likely why i cannot write to them.  What user do i change the
too?  Why did this happen to begin with.  I followed these instructions:

1. wget the needed RPM files:


2. install them with rpm:

rpm -Uvh apr-0.9.5-0.2.i386.rpm
rpm -Uvh apr-util-0.9.5-0.1.i386.rpm
rpm -Uvh neon-0.24.7-1.i386.rpm
rpm -Uvh subversion-1.3.0-1.rh90.i386.rpm

3. Did it work?

svn --version
svn, version 1.3.0 (r17949)
   compiled Jan  2 2006, 17:22:43

 Yay! We have subversion installed. Now to add it to xinetd so that it
starts in inetd mode automatically. First, we'll add a login for xinetd
run svnserve as:

adduser svnadmin
passwd svnadmin

 Next, we'll add the ports that xinetd is to forward to svnserve, in

vi /etc/services

 (I like vim, you can use pico or emacs or nano or whatever text editor
is that you like) and add the following two lines at the bottom:

svnserve        3690/tcp                        #subversion
svnserve        3690/udp                        #subversion

 Save and quit. Next, we'll add the xinetd script. Create the file with

touch /etc/xinetd.d/svnserve

 and then edit it with your favorite editor. With vi, it would be

vi /etc/xinetd.d/svnserve

 Paste this into the file:

# default: on
# Subversion server

service svnserve
        socket_type     = stream
        protocol        = tcp
        user            = svnadmin
        wait            = no
        disable         = no
        server          = /usr/bin/svnserve
        server_args     = -i -r /home/svnadmin
        port            = 3690

 Awesome. Now xinetd knows to start svnserve in inetd mode whenever
connects to port 3690. Next, let's reload xinetd:

kill -SIGUSR2 `cat /var/run/`

 Next, let's make sure xinetd is listening for 3690:

netstat -anp | grep LISTEN | grep 3690

 If you get nothing, you messed up one of the steps above. If you get a
that looks like this:

tcp        0      0  *
LISTEN      7136/xinetd

 Then you are in business. Now to set up svnserve. First, let's create a
repository using the svnadmin *program* (not to be confused with the
svnadmin *user*):

svnadmin create /home/svnadmin/mysvnrepo

 Next, let's set up the credentials for users connecting to it:

vi /home/svnadmin/mysvnrepo/conf/svnserve.conf

 paste in the following:

anon-access = none
auth-access = write
password-db = passwd
realm = My Code Repository

 Save and quit. Next, let's create some users. Go into the svnserve
file to do it:

vi /home/svnadmin/mysvnrepo/conf/passwd

 Here is an example of what to do. The format is user = password:

Jane = mycat'sname
Harry = i'msuchasexystud

 I certainly hope you'll use much better passwords than that
Finally, to make sure everything works, install Subversion and
right click on your desktop, click TortoiseSVN->Browse Repo, and put in

3dd4b52a0946bd698b1d1635a46ea3a3?d=identicon&s=25 Francois Beausoleil (Guest)
on 2006-03-07 03:38
(Received via mailing list)
2006/3/6, Manish Shah <>:
> adduser svnadmin
>         port            = 3690
> }

Your answer is here.  chmod everything to svnadmin and you'll be fine.

Bye !
C4dc94c893471878a105761a9207f29b?d=identicon&s=25 Zack Chandler (Guest)
on 2006-03-07 06:03
(Received via mailing list)
  After following Ezra's excellent rails VPS tutorial on
http://brainspl.atI setup subversion and really found the following
mini-tutorial helpful (
  Let me know if you have any questions after going through it.  Nice to
svn+ssh and svnserve and not have to deal with apache.

F10f95926f620318a71c102f207649b7?d=identicon&s=25 Manish Shah (Guest)
on 2006-03-07 12:37
(Received via mailing list)
ok so i managed to setup my repository.  Now i wanted to get apache
with regular cgi just to get things started.

I modified my httpd.conf file to include the stuff from the agile dev
I changed the Doc root to be /myapp/public.  I restarted apache.

I even created a symlink inside the public_html directory to

However when i browse to my ip address of the server (i havent setup the
stuff yet) i get a default holding page that should only show when the
domain has not been touched at all.  At this point apache should read
myapp/public or error right?

what am i doing wrong?  Please help...
This topic is locked and can not be replied to.