Virtualbox + Ubuntu + subversion + apache2

Source: Internet
Author: User

I wanted to toss SVN + Apache + Trac, but I didn't think it was successful at half past one. I only implemented SVN + Apache support and kept a record.

Host system: Mac OS X 10.8.3

Virtual Machine: virtualbox

Virtual Machine System: Ubuntu 12.04.2 lts

Reference connection: http://wiki.ubuntu.org.cn/SubVersion

Step 1: Install Subversion

Step 2: Install apache2

# Sudo apt-Get install apache2

Installation completed

# Apache2-V

If the following result is displayed, the installation is successful (the version and time may be different)

Step 3: Install libapache2-svn support

# Sudo apt-Get install libapache2-svn

Step 4: Configure dav_svn.conf

# Sudo Vim/etc/apache2/mod-available/dav_svn.conf

Add the following code:

<Location/SVN>

Dav SVN

Svnpath/home/SVN/Project

Authtype basic

Authname "Subversion repository"

Authuserfile/etc/subversion/passwd

Require valid-user

</Location>

Step 5: restart Apache

# Sudo/etc/init. d/apache2 restart

Step 6: Add a user to/etc/subversion/passwd

# Sudo htpasswd-C/etc/subversion/passwd luanqunmo

Step 7: Try to connect

First, view the IP address in virtualbox

# Ifconfig

OK. The virtualbox network IP address is 192.168.1.6.

Return to the host, open the browser and enter

Http: // 192.168.1.6/SVN/

Enter the user name and password in the pop-up box. the user name and password are the username and password added in Step 6.

In some cases, the following issues do not occur:

This is because some permissions are not verified, and the virtualbox is returned to execute the following code:

# Sudo chown-r www-data: www-data/home/SVN/Project

Restart Apache

# Sudo/etc/init. d/apache2 restart

Return to the host again. Open the browser and enter http: // 192.168.1.6/SVN.

Login successful

OK! Now the svn + Apache process is complete. For more Trac, continue the study!

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.