Install Subversion on 1and1 Hosting Provider
There is just no better solution than having your source code available to you over the internet, hosted on a safe and stable provider when working on several projects at different locations. I am currently using 1and1 as my hosting provider, and I have my repository for all my source code there as well. I can work anywhere and have access to the latest code, check out change history, compare different versions and so on.
Sure, there are source code service providers out there, but I like to customize my setup and it’s free of charge since it’s with my instance of web servers anyways.
Setting up SVN on 1and1 is not that easy, but doable for everyone determined. Here is the outline that I have gone thru in the quest of setting up Subversion hosted online.
Steps to install Subversion on 1and1
Create a new directory to place subversion code into
mkdir svn cd svn
Download the source code and all necessary dependencies
wget http://subversion.tigris.org/downloads/subversion-1.6.0.tar.gz wget http://subversion.tigris.org/downloads/subversion-deps-1.6.0.tar.gz
Configure and install subversion with the following settings
./configure --prefix=$HOME --without-berkeley-db --with-editor=/usr/bin/vim --with-apr=$HOME --with-apr-util=$HOME --with-neon=$HOME --without-apxs --without-apache --without-neon make make install
Verify that Subversion is properly installed
Version Control with Subversion
If you don’t have much experience with version control or Subversion itself, the O’Reilly book is a great resource and get you started quickly. This book received excellent reviews from Amazon readers and is highly recommended.
I also like Trac, a utility with a timeline of changes and commit comments. If you also like to add Trac, which I highly recommend, you need to download and extract Python 2.5, or simply add it using the package manager of your choice. Then proceed to install Trac.
Install and configure Trac
./configure –prefix=SOME DIRECTORY
After installation, just update your PATH directive in bashprofile, then logout and login again.
Important: Subversion will only be available via SSH and only to a single user. 1&1 does not allow multiple SSH users on one account and they do not have the SSH module installed in Apache. If you are looking for a multiuser Subversion, try a different provider.