Bootstrap FreeKB - Subversion (Version Control) - svnadmin create command (create a repository)
Subversion (Version Control) - svnadmin create command (create a repository)


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.




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


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