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