

- #Apache subversion install
- #Apache subversion update
- #Apache subversion upgrade
- #Apache subversion password

Grant write permission on both SVN repositories to authorized users: $ sudo sed -i "s # auth-access = write auth-access = write " /srv/svn/repo001/conf/nf $ sudo sed -i "s # anon-access = read anon-access = none " /srv/svn/repo002/conf/nf Press CTRL+ O, ENTER, and CTRL+ X to save the file and quit.įorbid anonymous access to both SVN repositories: $ sudo sed -i "s # anon-access = read anon-access = none " /srv/svn/repo001/conf/nf Open the user permissions file with the Nano editor: $ sudo nano /srv/svn/authzĮdit the file as follows to grant the permissions mentioned above:
#Apache subversion password
For example, the username is user001 for the first user, and the password is pass001. Set up a password database file /srv/svn/passwd to store user credentials. $ sudo chown -R apache:apache /srv/svn/repo002 $ sudo chown -R apache:apache /srv/svn/repo001Ĭreate another SVN repository named repo002, if necessary: $ sudo svnadmin create /srv/svn/repo002 Specify the root directory of SVN repositories: $ sudo mkdir /srv/svnĬreate the first SVN repository named repo001: $ sudo svnadmin create /srv/svn/repo001
#Apache subversion install
Install Apache Subversion: $ sudo dnf install subversion subversion-tools -y Start the Apache service and make it start on boot: $ sudo systemctl start rviceĤ. Prevent Apache from exposing files in the document root directory: $ sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/httpd/conf/nf Install Apache and the required Apache modules: $ sudo dnf install httpd httpd-tools mod_ssl mod_dav_svn -yĭisable the welcome page: $ sudo sed -i 's/^/#&/g' /etc/httpd/conf.d/nf
#Apache subversion upgrade
Upgrade the system, and reboot the machine to apply all updates: # dnf upgrade -refresh -yĪfter the machine reboots, log in as the sudo user snvsa to continue. # dnf install epel-release epel-next-release -y Install the Extra Packages for Enterprise Linux (EPEL) and EPEL-Next repositories: # dnf config-manager -set-enabled crb # firewall-cmd -zone=public -add-port=3690/tcp -permanent # firewall-cmd -zone=public -add-service=https -permanent # firewall-cmd -zone=public -add-service=http -permanent # firewall-cmd -zone=public -add-service=ssh -permanent
#Apache subversion update
Update firewall rules to allow traffic on ports: # echo 'svnsa ALL=(ALL) NOPASSWD: ALL' | tee -a /etc/sudoers.d/designated # echo 'svnsa:another-strong-password' | chpasswd & history -d -1 For example, if you chose this-strong-password as your password: # echo 'root:this-strong-password' | chpasswd & history -d -1Ĭreate a sudo user named svnsa with a strong password. # echo '/swap swap swap defaults 0 0' | tee -a /etc/fstabĬhange the initial root password to a strong password. Otherwise, set up a swap file of 2GB to ease system operations: # fallocate -l 2g /swap Then perform the tasks listed below to harden the system.įind out if any swap space exists on the system: # swapon -s Log in to the Apache Subversion server instance as root with the initial password you found on the Server Details page. If you are hosting the domain name on other platforms, instructions on setting up DNS records may vary.

To learn more about managing DNS through Vultr, refer to this article: Introduction to Vultr DNS.
