FreeKB - Creating a repository in Subversion (svnadmin create)
Creating a repository in Subversion (svnadmin create)

Home > Search


This assumes you have already set up an HTTPD web server for Subversion. When the web server was setup, a parent directory was created. Let's say the parent directory is /var/www/svn. 

The svnadmin create command is used to create a repository. In this example, since the parent directory is /var/www/svn, the repository is created below /var/www/svin. The repository is named "repo" and apache is the owner of "repo".

svnadmin create /var/www/svn/repo
chown -R apache.apache /var/www/svn/repo

 

If SELinux is enabled, issue the following commands so that SELinux permits access to the repository.

chcon -R -t httpd_sys_content_t /var/www/svn/repo
chcon -R -t httpd_sys_rw_content_t /var/www/svn/repo

 

You should now be able to view your empty repostiory at http://<hostname of your server>/svn/repo.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments