How to Install Apache Subversion on Alibaba Cloud


Install Apache Subversion

apt-get install apache2 apache2-utils -y
systemctl start apache2
systemctl enable apache2
apt-get install subversion subversion-tools libapache2-mod-svn libapache2-svn -y

Configure Subversion

svnadmin create /opt/svn/svnrepo
chown -R www-data:www-data /opt/svn/svnrepo
<Location /svn>
DAV svn
SVNParentPath /opt/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/svn.passwd
Require valid-user
htpasswd -cm /etc/apache2/svn.passwd hitesh
New password: 
Re-type new password:
Adding password for user hitesh
a2enmod dav
a2enmod dav_svn
systemctl restart apache2

Access Repository

svn checkout --username hitesh svnlocalrepo/
Authentication realm: <> Subversion Repository
Password for 'hitesh': *********
ATTENTION! Your password for authentication realm:
<> Subversion Repositorycan only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.
You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
Store password unencrypted (yes/no)? yes
Checked out revision 0.
cd svnlocalrepo
mkdir testdir
touch testfile1.txt
touch testfile2.txt
A         testdir
A testfile1.txt
A testfile2.txt
Adding         testdir
Adding testfile1.txt
Adding testfile2.txt
Transmitting file data ..done
Committing transaction...
Committed revision 1.

Install Subversion Client and Setup Repository

add-apt-repository ppa:rabbitvcs/ppa
apt-get install rabbitvcs-nautilus3 rabbitvcs-gedit rabbitvcs-cli rabbitvcs-core -y

Original Source



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store