Use the MySQL database in Ubuntu to verify the creation of the SVN server accessed

Source: Internet
Author: User
1. Install the Apacheapt-getinstallapache22. Install the MySQLapt-getinstallmysql-server3. Install the subversionapt-getinstallsubversionlibapache2-svnlibapache2-mod-auth-mysql4. Create a subversion project to modify the user so that

1. install Apache

Apt-get install apache2

2. Install MySQL

Apt-get install mysql-server

3. Install subversion

Apt-get install subversion libapache2-svn libapache2-mod-auth-mysql

4. Create a subversion project and modify users so that they can be accessed through HTTP

Svnadmin create/var/www/svn

Chown-R www-data/home/www/svn

5. Import the project

Svn import/tmp/shou/project file: // var/www/svn-m "comment"

6. Create a user verification database

  1. Creata table svn;
  2. CREATETABLEuser (
  3. Id INTEGERNOTNULLPRIMARYKEY AUTO_INCREMENT,
  4. Username char (128) notnull comment 'username ',
  5. Passwordchar (128) notnull comment 'Password'
  6. ) ENGINE = InnoDB default charset = utf8;
  7. INSERTINTOuser (username, password) VALUES ('admin', MD5 ('admin '));

7. Configure the Apache file, open the file/etc/apache2/sites-available/default, and add the following configuration information

  1. DAV svn
  2. SVNPath/var/www/svn
  3. AuthType Basic
  4. AuthName "Subversion Repository"
  5. Auth_MySQL On
  6. Auth_MySQL_Authoritative On
  7. Auth_MySQL_Host localhost
  8. Auth_MySQL_DB svn
  9. Auth_MySQL_User root
  10. Auth_MySQL_Password rootadmin
  11. Auth_MySQL_Password_Table user
  12. Auth_MySQL_Username_Field username
  13. Auth_MySQL_Password_Field password
  14. Auth_MySQL_Empty_Passwords Off
  15. Auth_MySQL_Encrypted_Passwords On
  16. Auth_MySQL_Encryption_Types PHP_MD5
  17. AuthBasicAuthoritative Off
  18. AuthUserFile/dev/null
  19. Require valid-user

※The preceding configuration information is recommended to be defined in the/etc/apache2/mod-available/dav_svn.conf file.

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.