Install SVN and SvnManager in Ubuntu

Source: Internet
Author: User
I have installed svn and svnmanager multiple times in linux, recorded the installation steps, and backed up myself. I also hope to help others. The following are the steps for installing on Ubuntu. The installation method is similar in other linux versions. 1. Install Apache2sudoapt-getinstallapache22. Install SVNsudoapt-getinstallsubversion3. Configure SVN

I have installed svn and svnmanager multiple times in linux, recorded the installation steps, and backed up myself. I also hope to help others. The following are the steps for installing on Ubuntu. The installation method is similar in other linux versions.

1. Install Apache2

  sudo apt-get install apache2

2. Install SVN

  sudo apt-get install subversion

3. Configure SVN

Create the parent directory of the SVN version Library

  sudo mkdir /var/svn/repos

Create a file that controls User Access

  sudo touch /var/svn/repos/accessfile

Create a password file for the verified user

  sudo touch /var/svn/repos/passwdfile

Change the read/write permissions of an object

  sudo chmod 666 accessfile passwdfile

4. Apache integrated SVN

  sudo vi /etc/apache2/httpd.conf

Add the following content at the end of the file:



DAV svn

SVNParentPath/Var/svn/ ReposAuthzSVNAccessFile/Var/svn/repos/ Accessfile

AuthType Basic

AuthName " Subversion repository "

AuthUserFile/Var/svn/repos/ Passwdfile

Require valid- User

</Location> after this step, you can use commands to create svn version libraries and users. And can access the svn version library through the web.

5. Install MySQL

  sudo apt-get install mysql-server mysql-client

6. install PHP

  sudo apt-get install php5 php5-mysql php5-sqlite php-pear  sudo pear install -a VersionControl_SVN-0.3.1

7. Install svnmanager

Download svnmanager:

  wget http://prdownloads.sourceforge.net/svnmanager/svnmanager-1.08.tar.gz

Decompress the package and place it under/var/www /.

  tar zxvf svnmanager-1.08.tgz  mv svnmanager-1.08  /var/www/svnmanager

8. Create a database for svnmanager

Mysql-uroot-p



Mysql> Create database svnmanager;

Mysql> Grant all privileges on svnmanager. * to 'svnmanager' @ 'localhost' identified by '100 ';

Mysql> Flush prifileges;

Mysql> Exit
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.