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:
- Download the TAR to your home directory:
wget http://www.erikfantasia.com/download/godaddy-svn-1.5.6.tar.gz
- Unzip and unpack the archive:
tar zxvf godaddy-svn-1.5.6.tar.gz
- 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.
What is the username and password i use in dreamweaver when i use subversion
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
Thanks for the tip. This helped a lot!
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?
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!
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.
This tutorial sucks. Can you show us how to actually USE this SVN once its up?
Thanks, Erik — much appreciated.
@Alex, what is your problem? You want a full subversion tutorial, look elsewhere.
Um yah. “-bash: svnadmin: command not found”
hmmmm…
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!
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.
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!
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!
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.
Worked great! Thanks a lot