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
dpkginstall 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 ;)

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Google Bookmarks
  • BarraPunto
  • Bitacoras.com
  • FriendFeed
  • Meneame
  • Netvibes
  • Reddit
  • StumbleUpon
  • Tumblr
  • Wikio
  • RSS
  • email
  • PDF
  • Print

Related posts:

  1. Install Picasa 3.5 in Ubuntu
  2. How to install KDE 4.3 in Ubuntu Jaunty
  3. Improve LAMP performance, for low cost servers or VPS
  4. Setting up Firewall in Linux
  5. Java Runtime Environment on Ubuntu 64bits and Firefox plugin

One Comment

  1. Jinny says:

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

Leave a Reply

Follow me