sudo apt-get upgrade
sudo apt-get install subversion libapache2-svn apache2 ssl-cert
sudo mkdir /etc/apache2/ssl
sudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem
sudo chmod 660 /etc/apache2/ssl/apache.pem
sudo vi /etc/apache2/ports.conf
sudo a2enmod ssl
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/svn
sudo vi /etc/apache2/sites-available/svn
SSLEngine on
ServerSignature On
SSLCertificateFile /etc/apache2/ssl/apache.pem
sudo a2ensite svn
sudo /etc/init.d/apache2 force-reload
sudo openssl req -config /usr/share/ssl-cert/ssleay.cnf -new -x509 -days 1460 -nodes -out /etc/apache2/ssl/apache.pem -keyout /etc/apache2/ssl/apache.pem
sudo mkdir /var/svn/devel
sudo chown -R www-data:www-data /var/svn/devel
sudo chmod -R g+ws /var/svn/devel
sudo svnadmin create /var/svn/devel
sudo htpasswd -c -m /etc/apache2/dav_svn.passwd admin
sudo htpasswd -m /etc/apache2/dav_svn.passwd developer
sudo vi /etc/apache2/mods-available/dav_svn.conf
sudo /etc/init.d/apache2 force-reload
No comments:
Post a Comment