LAMP + SVN in Ubuntu
Quick Ubuntu Server installation for LAMP + SVN
First we need a clean installation of Ubuntu Server (works with Debian as well).
After the installation in the console we are going to install, Apache, Mysql, PhpMyAdmin and Proftpd
apt-get update apt-get upgrade apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql php5-gd phpmyadmin proftpd
To make easier the administration I like to use Webmin (replace ? for current version here):
apt-get install ssh libmd5-perl libio-pty-perl libauthen-pam-perl libnet-ssleay-perl libpam-runtime openssl perl perl-modules wget http://site.com/path/webmin.?????.deb dpkg –install webmin.?????.deb
Now the svn:
apt-get install subversion subversion-tools websvn
Creating a repository
mkdir /svn/ mkdir /svn/MYREPOSITORYNAME chown -R www-data /svn/MYREPOSITORYNAME chmod -R g+rws /svn/MYREPOSITORYNAME svnadmin create /svn/MYREPOSITORYNAME
Setup users
htpasswd -c /etc/subversion/passwd users
Setup repository access (web)
vi /etc/apache2/mods-available/dav_svn.conf
Inside something like this:
<Location /svn/myproject> DAV svn SVNPath /svn/myproject AuthType Basic AuthName “myproject subversion repository” AuthUserFile /etc/subversion/passwd <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location>
Restart services! and done!
If you have any problem do not hesitate to comment about it ;)
Related posts:

neo22s.com – da best. Keep it going!
Jinny