leoleeEye 发表于 2013-1-31 11:19:14

Linux SVN server -install -bea

1.install apache2 

sudo apt-get install apache2
for more information about apache2 read this link.


2.install subversion

sudo apt-get install subversion


3.install libapache2-svn

sudo apt-get install libapache2-svn
To use svn with apache you need install libapache2-svn


4.config subversion and apache2

a. build a svn project pool:
    sudo mkdir -p /home/svn
    sudo svnadmin create /home/svn
    sudo chown -R /home/svn
    sudo chmod -R /home/svn


b. config apache2 for subverion:
    sudo gedit /etc/apache2/mods-available/dav_svn.conf
    add following codes to dav_svn.conf
    <Location /svn>       DAV svn       SVNPath /home/svn       AuthType Basic       AuthName "Subversion repository"       AuthUserFile /etc/subversion/passwd       <LimitExcept GET PROPFIND OPTIONS REPORT>         Require valid-user       </LimitExcept>   </Location>        restart apache2 
    sudo /etc/init.d/apache2 restart
    and now you can access svn(http://localhost/svn)
 
5.add SSL for subversion
   sudo  a2enmod ssl
   sudo /etc/init.d/apache2 restart
   sudo mkdir /etc/apache2/ssl
   sudo openssl req -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/ssl/apache.pem
   sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/myown-ssl
   sudo gedit /etc/apache2/sites-available/myown-ssl
页: [1]
查看完整版本: Linux SVN server -install -bea