Subversion on GoDaddy shared hosting

For better or worse, I’ve been using GoDaddy shared hosting for my personal hosting needs for nearly a year.  It’s cheap and cheerful, with plenty of disk space, bandwidth, SSH access, and easy access to a number of popular open-source apps you can test out with GoDaddy’s hosting connection.  Of course, it does have its drawbacks, and one of the major ones for me has been the nonexistence of a subversion client in the shell environment.

GoDaddy also doesn’t provide a compiler, so building from the source isn’t a possibility.  I read a post suggesting it might be possible to use a binary and decided to give it a shot.

Poking around, I noticed my server was an X86 running CentOS 5.2 (which is essentially RHEL), so downloaded the CollbNet RedHat binary.  The binary was packaged as a RPM file, so I used another machine to unpack it:

rpm2cpio CollabNetSubversion-client-1.5.6-1.i386.rpm | cpio -id

The package I used only included the subversion client.  It also came with some PDFs, man pages, install scripts, and other unnecessary bits which I was able to pare down.  I transferred the leftovers to my GoDaddy home directory, changed some environment variables, and voila – it worked!

If you’re in the same boat, you can download a TAR with everything you need here.

Here’s a step-by-step to get it working from the command line:

  1. Download the TAR to your home directory:
    wget http://www.erikfantasia.com/download/godaddy-svn-1.5.6.tar.gz
  2. Unzip and unpack the archive:
    tar zxvf godaddy-svn-1.5.6.tar.gz
  3. If you haven’t adjusted your default .bashrc file, you can move the included bashrc.svn to overwrite your existing file:
    mv bashrc.svn .bashrc

    Or append the following to your existing .bashrc:

    export PATH=$PATH:$HOME/svn/bin
    export LD_LIBRARY_PATH=$HOME/svn/lib

UPDATE – thanks to Alin for pointing out this will only work for repositories hosted with HTTP/HTTPS.  GoDaddy appears to be blocking the svnserve port 3690.

17 Responses to “Subversion on GoDaddy shared hosting”


  1. 1 Moses Aronov April 6, 2009 at 7:10 pm

    What is the username and password i use in dreamweaver when i use subversion

  2. 2 roi April 11, 2009 at 4:14 am

    Hi Eric,
    thanks for the details and work. I just wonder – since you posted this last month – is everything still going well, and it still works. I am worried because i am not sure how this solution goes together with GoDaddy’s policies, and if they can track your svn client down.

    thanks,

    Roi

  3. 3 Rick Gerkin June 1, 2009 at 9:04 pm

    Thanks for the tip. This helped a lot!

  4. 4 mpdeimos June 28, 2009 at 4:10 am

    Hey, thx for this – works great!

    I’ve initially searched for hosting an SVN server on godaddy, Do you think it is possible to work this out with a similar trick?

  5. 5 J4ckripp3r July 2, 2009 at 2:00 am

    I followed all of your steps and everything seemed to install.

    My question can you give me a link on how to use this SVN?

    Also how can I check if godaddy is blocking it or stopping it from working?

    Thank you so much!

    :D

  6. 6 Devin Fantasia July 11, 2009 at 9:38 am

    Erik,

    Although I have used GoDaddy, I have the preference of the Linux based 1and1.com for both price and functionality. Keep up the good work. Calorie count.com looks great.

  7. 7 Alex September 16, 2009 at 2:11 pm

    This tutorial sucks. Can you show us how to actually USE this SVN once its up?

  8. 8 Noel October 7, 2009 at 9:16 am

    Thanks, Erik — much appreciated.

    @Alex, what is your problem? You want a full subversion tutorial, look elsewhere.

  9. 10 Dennis October 8, 2009 at 12:30 am

    Erik,

    Looks like they have come out with a new version. Will you be updating your tar file? Thank you for taking the time to post this information. Very helpful!

  10. 11 Mike Jutan October 26, 2009 at 3:47 am

    Hey Erik,

    Thanks a bunch buddy for all the great setup! I was trying to get p4 or CVS access and without sudo there isn’t much you can do in that realm it seemed… thanks a bunch for this, this is super helpful.

  11. 12 Pierre-Olivier Charlebois October 26, 2009 at 4:52 pm

    Thanks Erik, it worked like a charm!

    As mentionned, you will need your svn to listen to port 80 or 443.
    If you are running the svnserve service, you can add “–listen-port 80″ as start arguments. Otherwise, I setup my router to redirect incoming traffic on port 80 to intranet port 3690. You will then be able to checkout on the host svn://yourhost:80/yourrepos without changing any configs on your server.

    Good luck!

  12. 13 Bikash October 28, 2009 at 6:46 am

    It Worked! But I am not sure, you mean this is only the client? Can I use it in anyway as a svn server?

    Thanks!

  13. 14 Phill November 27, 2009 at 4:09 am

    Hi Erik,

    Can you please explain what we need to do after we install it?
    I’m obviously not an expert, I’ve never user linux and I just started using svn at work.
    I usually have an url to which to link to, like:
    https://svn.mydomain.com
    Which domain should I use and how to create repositories?

    Regards.

  14. 15 Marcin December 14, 2009 at 5:16 pm

    Worked great! Thanks a lot


  1. 1 如何在GODADDY的SHARED HOSTING空间里增加SVN « 兜风而已 Trackback on August 14, 2009 at 3:50 am
  2. 2 Bikash Shah » Blog Archive Trackback on October 28, 2009 at 9:23 am

Leave a Reply




Topics