Install apache2 + svn In Debian

Source: Internet
Author: User
Install apache2 + svn In Debian-Linux Enterprise Application-Linux server application information. For details, refer to the following section. 1. Install SVN (source code or apt-get)

I am using apt-get install svn, mainly because this is very simple.

2. Configure SVN

Use svnadmin create/xx/yy to create a library, and then use the svn import command to import the source code.

Go to the/xx/yy directory and edit the conf/svnserver. conf file.

Anon-access = read // anonymous user readable
Auth-access = write // The authenticated user can write
Password-db = passwd // the user name and password for authentication are stored in the passwd file.

Add the user = password to the passwd file.

For example, user = 123456

3. Start SVN

Svnserver-d

At this time, you can use svn checkout svn: // xxx. xxx/xx/yy to download.

4. Use apt to install apache2

Apt-get install apache2

After installation, the configuration file is under/etc/apache2.

5. Configure SVN access for apache2

Add/etc/apache2/httpd. conf


DAV svn
SVNPath/xx/yy // library directory
AuthzSVNAccessFile/etc/apache2/access
Require valid-user
AuthType Basic
AuthName "xxx"
AuthUserFile/etc/apache2/passwd


6. Create two files, one is the access permission file and the other is the user and password file passwd.

Passwd:

Run the following command: htpasswd-c passwd user1 and then enter the password.

Set the-c parameter when creating the user.

Access:

[Xxx:/] // This is its library.
User1 = rw // The first step is the user name, followed by the permission.

7. Restart The apache2 service.

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.