LAMP_SVN_USVN
sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server php5-mysql subversion libapache2-svn
#SVN_USVN
cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/rewrite.load .
sudo ln -s ../mods-available/dav_fs.load .
sudo /etc/init.d/apache2 restart
#config_ssl
sudo a2enmod ssl
sudo /etc/init.d/apache2 restart
sudo a2ensite default-ssl
sudo /etc/init.d/apache2 reload
#download source
sudo mkdir /opt/{src,build}
cd /opt/src
sudo wget http://www.tigris.org/files/documents/5823/46727/usvn-1.0.1.tgz
cd /opt/build/
sudo tar xzvf ../src/usvn-1.0.1.tgz
sudo mkdir /home/{web,svn}
sudo mkdir -p /home/svn/repo
sudo mv usvn-1.0 /home/web/usvn
sudo chown -R www-data:www-data /home/web
sudo chown -R www-data:www-data /home/svn
sudo cat > /etc/apache2/sites-available/010-svn <
# Configure access to usvn
Alias /usvn /home/web/usvn/public
Options +SymLinksIfOwnerMatch
AllowOverride All
Order allow,deny
Allow from all
ErrorDocument 404 default
DAV svn
Require valid-user
SVNParentPath /home/svn/repo/svn
SVNListParentPath off
AuthType Basic
AuthName "USVN"
AuthUserFile /home/svn/htpasswd
AuthzSVNAccessFile /home/svn/authz
EOF
sudo /etc/init.d/apache2 restart
进入安装界面:
配置ssh访问svn
sudo vim /etc/apache2/ports.conf
#NameVirtualHost *:80
#Listen 80
修改配置文件:sudo vim /home/web/usvn/config/config.ini
subversion.url = ""
阅读(6868) | 评论(0) | 转发(1) |