On Aug 16, 2009, at 06:15, Milan Dinić wrote:
> I'm new to Subversion. On my managed VPS, running on CentOS, Apache
> 2.2.11 and cPanel I got installed SVN. Then I wanted to create a
> repository as per guides I read on web.
Welcome to Subversion!
> I created directory svn in /home/user/public_html via mkdir
> command, then in that directory I run
> svnadmin create repos
> chown -R apache.apache repos
> service httpd restart
You should absolutely not make a repository inside your public_html
directory, or anywhere else that Apache will serve files directly
from (like its DocumentRoot). Instead, put the repository anywhere
else on disk, and then configure Apache to point at it with an
> In directory repos there are several directories now (conf, db,
> format...). After that I run command to create a project inside.
> Since I found two different examples I used them both, but in both
> cases I got errors.
> svn mkdir project
> but got error
> svn: '.' is not a working copy
Correct. You were not in a working copy. Either be in one, or use the
> Then I created new directory in /home/user/public_html called
> project with subdirectories trunk, branches and tag and run command
> svn import /home/user/public_html/project file:///home/user/
> public_html/svn/repos/project -m "Initial repository layout"
> but got error:
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///home/user/public_html/svn/
> svn: Expected FS format '2'; found format '4'
Your svn command is much older than your svnadmin command. Check
whether there might be multiple versions of svn and/or svnadmin on
your system. It's best to have just one, and then of course of the
latest version, currently 1.6.4.
> I spent a lot of time googling without success, so I'm asking here
> how to solve this? What I want is to create several projects inside
> repository so that I could store my internal code.
You should probably begin by spending several hours reading the
Subversion Book, which will give you a good handle on how Subversion
works and how you can best use it. The book is free to read online
and is located here:
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-16 21:25:42 CEST