SVN on 1and1 Hosting

Posted by on Feb 25, 2010 in Bits, Blog | 6 comments

SVN on 1and1 Hosting

Here is another of my guides for 1and1 users, i had issues finding a good guide when installing or adding SVN, subversion to my 1and1 shared hosting for the first time, to trial is use for updating wordpress on 1and1 automatically, but more of that another day.

Sorry for no pictures, if you are a more visual person then i will try and get some screen shots etc to help you on your way with SVN and 1and1

Here is the executable code, it has taken me a few trials to get it all working as it should after studying the various guides on the net.

NOTE: You need to substitute YOUR_SERVER and the xx/xxxxxxx for your own details. These can be found by uploading a phpinfo() file to your host in the normal way and copying the details across.

NOTE:Check your subversion’s version i believe 1.6.3 is the latest, just change the version numbers and it should all work fine (if you want the latest version)

mkdir ~/tmp
mkdir ~/opt/svn
cd ~/tmp
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
tar -xzvf subversion-1.6.0.tar.gz
tar -xzvf subversion-deps-1.6.0.tar.gz
cd ~/tmp/subversion-1.6.0
./configure –prefix=/YOUR_SERVER/homepages/xx/xxxxxxxxxx/htdocs/opt/svn
make
make install

echo ‘export PATH=~/opt/svn/bin:$PATH’ >> ~/.bash_profile
svn –version

rm ~/tmp/subversion* -r
svnadmin create ~/opt/svn/repos

There is the code needed to setup SVN using PuTTy and SSH to connect to the server

Please let me know if i have made any errors.

References:

http://www.flyonsoft.com/component/content/article/78

http://www.lbsharp.com/wordpress/index.php/2007/11/30/configuring-website-on-a-1and1-shared-host/

http://articles.itecsoftware.com/web-development/install-subversion-on-1and1-hosting-provider

6 Comments

  1. This looks handy!

  2. …Andy

  3. How to access to repository from http? or ssh?

    mywebsite.com/opt/svn/repos/

    svn+ssh://mywebsite/opt/svn/repos/

    Doesn’t run :(

    thanks.

  4. Just installed the svn using this instructions and worked flawlessly, Thank you :)

    • You are very welcome. Any links to this guide/recommendations are welcomed.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>