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!