User Tools

Site Tools


informatica:linux:subversion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
informatica:linux:subversion [2013/07/03 11:02]
127.0.0.1 external edit
informatica:linux:subversion [2015/04/13 22:19] (current)
Line 109: Line 109:
  
 ===== Subversion y apache ===== ===== Subversion y apache =====
 +
 +==== Apache >=2.4.x y subversion >=1.8.x ====
 +
 +http://​svnbook.red-bean.com/​en/​1.8/​svn.serverconfig.httpd.html
 +
 +1. Instalar paquetes
 +
 +  sudo aptitude update; sudo aptitude install apache2 subversion libapache2-svn
 +
 +2. Habilitar módulo de apache:
 +
 +<​code>​
 +sudo a2enmod dav
 +sudo a2enmod dav_lock
 +sudo a2enmod dav_fs
 +</​code>​
 +
 +3. Reiniciar apache
 +
 +  sudo service apache2 restart
 +
 +4. Crear una config de apache:
 +
 +  sudo vim /​etc/​apache2/​conf-available/​svn.conf
 +  ​
 +Con el siguiente contenido:
 +
 +<​code>​
 +<​Location /svn>
 +  DAV svn
 +  # Automatically map any "/​svn/​foo"​ URL to repository /​var/​svn/​foo
 +  SVNParentPath /var/svn
 +</​Location>​
 +</​code>​
 +
 +5. Ajustar permisos:
 +
 +  sudo chown -R www-data:​root /var/svn
 +  ​
 +6. Cargar config de apache:
 +
 +  sudo a2enconf svn
 +  sudo service apache2 reload
 +  ​
 +7. Probar:
 +
 +http://​svn.example.com/​svn/​project_1
 +
 +Deberia ir a:
 +
 +  /​var/​svn/​project_1
 +
 +  ​
 +
 +
 +==== Apache <=2.2.x y subversion <=1.7.x ====
 +
  
 http://​svnbook.red-bean.com/​en/​1.4/​svn.serverconfig.httpd.html http://​svnbook.red-bean.com/​en/​1.4/​svn.serverconfig.httpd.html
informatica/linux/subversion.txt · Last modified: 2015/04/13 22:19 (external edit)