Use svnmanager to manage SVN

Source: Internet
Author: User
Use svnmanager to manage SVN

Subversion has very good features, but the Default User Permissions and repository management are implemented by manually modifying the configuration files on the server, which is very inconvenient.(Subject: you can configure Apache to use MySQL to manage users (mod_auth_mysql), but the user group andCodeWarehouse Management is still inconvenient)

Fortunately, the problem we encountered is what we encountered, and svnmanager emerged to solve this problem.

The introduction of svnmanager is not complex, but due to the relationship between dependent libraries, the first installation may encounter various problems, which are not explained in the official documentation. The specific steps are listed below.

1. Software Download

    • Apache-2.0.59
    • PHP-5.1.2, Which must be version 5.0 or later.
    • PHP PEARThis is included by default in 5.1.2, but you need to perform an installation step.
    • Versioncontrol_svnThis can be installed through Pear
    • MySQL or SQLite: You need to configure it in PHP. ini.
    • SvnManager-0.39

2. Installation (this is a Windows platform, similar to the Linux platform)

(if SVN and Apache are configured, see Article at the bottom of this article if not)

    • Install Pear
      After installing the php-5.1.2 (including the MSI or zip version), there is a go-pear.bat batch file in the PHP installation directory to run it.
      After running, check whether this line is included in c: \ windows \ PHP. ini:
      Include_path = ".; F: \ apache \ PHP \ Pear"
    • InstallVersioncontrol_svn, You can use the command line to automatically download and install
      Pear install versioncontrol
      Or download the file from the website and decompress it to the pear directory.
    • Check whether MySQL or SQLite support is enabled for PHP as needed.
      In C: \ WINDOWS \ PHP. ini, check that the semicolon before the following two rows has been removed:
      Extension = php_pdo.dll
      Extension = php_sqlite.dll
      OrExtension = php_pdo_mysql.dll
      Make sure that the PHP extension directory is correctly set:
      Extension_dir = "F: \ apache \ PHP \ Ext"
      You can usePhpinfo ()Check whether the load is successful.
    • Install svnmanager
      After completing the preceding steps, it is very easy to install svnmanager.
      Decompress svnmanager to the website directory and modify config. php. It mainly sets file locations such as htpasswd, SVN, SVN-admin, and svn_passwd_file. It is easy to modify according to the annotations.
    • Open the svnmanager URL in the browser, and then use the Temporary Management User Password in config. php to log on, and add the first Administrator Account (Be sure to do). Then, you can use this account to manage users and code repositories.

3. Appendix

Dav SVN
Svnparentpath "F:/svndata/SVN"
Svnlistparentpath on

Authzsvnaccessfile F:/svndata/svn_access_file

Require valid-user

Authtype basic
Authname "subversion repository"
Authuserfile F:/svndata/svn_passwd_file

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.