

$ sudo firewall-cmd -reload Step 6) Access SVN Repo from Web Browser $ sudo firewall-cmd -permanent -zone=public -add-service=https In case firewall is enabled on your system then allow following port by running, $ sudo firewall-cmd -permanent -zone=public -add-service=http Run the beneath systemctl commands to start and enable apache web server’s service. $ sudo chcon -R -t httpd_sys_rw_content_t /var/www/svn/repo/ Step 5) Start and Enable Apache Service $ sudo chcon -R -t httpd_sys_content_t /var/www/svn/repo/

Note: In case SELinux is enable then apply below selinux rules by running, Run following commands one after the another to create your first svn repository and to set the required permissions, $ sudo mkdir /var/www/svn $ sudo htpasswd -m /etc/svn-auth-accounts pkumar To create second user remove the ‘-c’ from the above command otherwise it will overwrite existing file. c is used to create the password file (/etc/svn-auth-accounts) and -m used to create MD5 encryption password for the user. In the above htpasswd command we have used ‘-c’ & ‘-m’ options. Run the beneath command to create user for SVN via htpasswd command, $ sudo htpasswd -cm /etc/svn-auth-accounts linuxtechi Step 3) Create SVN Users via htpasswd command $ sudo vi /etc/httpd/conf.d/nfĪbove settings will allow only the authenticated users to use SVN repository. $ sudo dnf install -y httpd subversion mod_dav_svn Step 2) Edit Configuration File of Apache SubversionĬreate a file ‘/etc/httpd/conf.d/nf’ and add the following lines to it.
