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
Question. Do you know if this can somehow work on a Hosting Windows Environment of GoDaddy? I am not aware of being able to compile the binary on a windows host…but then again I am not a linux guy.
Thx.
Hi Erik,
I just (finally) finished compiling subversion 1.6.9 in order to install the client on my GoDaddy account. It works wonderfully thanks to your blazing the path.
I’ve kept the archive on my desktop if you want to update your post with it, just let me know.
Thanks for your original post!
@I_Artist
Please post this!
To reload your .bashrc file after the steps above, do this:
. ~/.bashrc
I_Artist, you should just upload the files to google code and post the link 🙂
Cheers,
Derek
Erik Thanks a ton, this is exactly what I was looking for. I have several clients that use godaddy and svn is essential for version control, For those of you looking for an SVN server options, I have used Unfuddle for svn, they offer free SVN and GIT repository hosting for up to 200Mb and two users.
I am currently working on an svn web client that we will use to update production code with a web application rather then having to terminal in with ssh to just run the “svn update” command.
I have this web svn client working just fine on several dedicated servers, I am just having a problem running the “svn update” command through php via the “exec” commands. I am pretty sure what is going wrong is a permissions problem, svn works perfectly when I terminal in with ssh, but when I run the command with php I get this error.
error while loading shared libraries: libsvn_client-1.so.0: cannot open shared object file: No such file or directory
I can’t figure this out and it is driving me crazy, Erik or anyone else if you have any suggestions I would love to hear them.
Thanks,
Ben
check the file permissions
to get no doubts, try chmod 777
if it works you can change it later to something more restrict
I had the same problem, in my php code.
didn’t see an answer here, so I thought I’d post my solution:
in the php code, put:
$lib_path = “/home/content/w/h/a/whatever/svn/lib”;
$bin_path= “/home/content/w/h/a/whatever/svn/bin”;
putenv(‘PATH=$PATH:’.$bin_path);
putenv(‘LD_LIBRARY_PATH=’.$lib_path);
that worked for me.
Just wanted to note that on my godaddy account, ~/.bashrc is ignored — instead you must use ~/.bash_profile.
Thanks very much for this.
this was my case also. i did this once and had no problems. then went to do it again on another client’s account and had issues, until discovering this note here from Noel. (my first time doing this was with a Deluxe hosting account established in 2007; this current time was with an Economy hosting account established just last week).
Thanks a lot.. Erik and Noel !! it works!!
It would be really useful if someone could post the 1.6.9 binaries that are extracted from the rpm already
Hi
Thanks so much for this info. I’ve used a similar process to get rsync on my shared GoDaddy space. Starting with the rsync rpm for RHEL 5, using rpm on the godaddy space, then cpio on my mac, and uploading the contents to my godaddy user’s home.
Now I can rsync files between the goddady space and my mac using a command like the following.
rsync -aPv –rsync-path=”~/rsync/usr/bin/rsync” user@domain:html .
Note that I don’t think you can use rsync from the command line on the goddady server, since it doesn’t allow you to use ssh out again, which rsync depends on.
Brilliant! (and thanks for providing the tar file)
Great work…thank you so much. but me i used .bash_profile instead to .bashrc because export doesn’t save in my session.
This is just PERFECT!
I have been looking for this a long time!
Just one question: if I want to get more RPM packages, how can I get the right ones? I just tried one for gnu nano and I got “segmentation fault”
Thank you SO much for this! Client is using godaddy and now I don’t have to go svn-free!
hi Matthew,
I’m really wanna the rsync command on godaddy, can you send me the files of rsync for godaddy ? mail : eggcaker at gmail dot com, thanks !
Hi Caker
Here’s a zip of the rsync files I have on my godaddy server. http://fredsherbet.com/rsync-godaddy-grid.zip
I don’t know if they’ll work on your server – it depends whether they’re the same OS etc.
Export the zip into you home directory. You should just see an rsync directory added, containing all the bits.
And then you should be able to run rsync onto the web server.
Commands:
to unzip the archive,
unzip rsync-godaddy-grid.zip
from your computer you’re trying to rsync from (remember, you can’t run rsync from the server, because the ports needed aren’t open) include the –rsync-path=”~/rsync/usr/bin/rsync” option so it knows where rsync is on your server.
works great – thanx for that rsync GoDaddy trick 🙂
Thanks! You’re a life saver.
thanks guys, another life saved
Thanks a lot for the info. It worked like a charm :). This saves a lot of time as I don’t have to re-upload the site every time I change something.
Thank you for the post, this worked line for line. Hard to believe that a shared hosting provider as big as go-daddy hasn’t made it simpler to implement VCS deployment on their sites.
Hey thanks for sharing.
I’m getting this error:
./svn: error while loading shared libraries: libsvn_client-1.so.0: cannot open shared object file: No such file or directory
Can you help?
Fixed it!
Had to call the exports from the command line, the .bashrc trick was not working.
Thanks a lot!!
I need a compiler to install Imagemagick for my godaddy hosting.
Apparently, something is amiss with their Grid Hosting and Imagemagick.
Is this what I am looking for?
newbie, here.
Thanks for sharing this, saved me a massive headache!
How did you start the server with this setup? svnadmin command would not work.
This is the svn client, not the svn server. You need to have an existing svn server to connect to. svnadmin only works on the server.
Hi bro,
Your article is very interesting.
But, I need your help. I have a shared hosting on Godaddy. Economy plan.
I’ve push your command line on my Putty app.
Now, how can I checkout/commit my code up to the hosting?
I use TortoiseSVN. What is the url I can use?
Thanks.
Hey guys,
I posted an updated version of these instructions (including the latest binaries) on my blog. Enjoy!
http://decadentwaste.net/2011/04/subversion-svn-on-godaddy-shared-hosting/
Are you sure you had a shared hosting account?
And what about windows hosting ???? 😦
thank you. this worked great for me.
Is it still working on goDaddy?
Why would anyone need a subversion CLIENT on their web server? Who logs into the server to run the client app? The real question is how to install SVN server on Godaddy. Thanks anyway but why is this useful?
So that you can keep your website code under version control. It’s helped me spot when something nefarious has changed the code on my server.
Keren banget sist, thank you sharingnya. Ini artikel yang
saya cari selama ini. Info soal web hosting yang seru banget.
Kalau boleh tulis juga sist ulasan terkait domain dan toko online.
Saya pengen tau banget soal itu.
Hello, My site is on Godaddy shared hosting. it is http://www.ainfosolutions.com
I have enabled SSH but not able to install the Subversion client. My svn repository is on cloudforge.net and i want to connect my site hosting to svn repository.
Is there anyway to install svn client on my godaddy hosting. It is linux platform. Plz suggest, i am new in this field and trying to figure out the solutions.
Neben automatisierten Posts wie oben beschrieben können Sie die Neuigkeiten gezielt nutzen,
um Ihr Netzwerk zu informieren und gezielt zu unterhalten.
Neben gesunder Ernährung wird körperlicher Aktivität
eine besondere Bedeutung zugeschrieben.
Ich finde den neuen Kurs „Fit und gesund – Tipps für ein besseres Leben große Klasse, erfrischend
und anregend.
Aber natürlich sollte man auch an sich selbst denken – wir bei Conrad haben etliche Technik-Gadgets im Sortiment, die Euch helfen,
fit zu werden.
Reden Sie mit Ihrem Arzt offen über schwere seelische
Belastungen und Konflikte, wenn vorhanden.
Zu einer ausgeglichenen Ernährung gehören Vitamine, Kohlenhydrate, Proteine,
Mineralstoffe und Spurenelemente.
Generell erzeugt Bewegung Elektrizität und Magnetismus in Zellen,
Geweben, Körperflüssigkeiten und Organen.
Hey! Good luck sa exam.Maalala mo rin yan. Dapat sinabi mo sa akin yan while nasa Pinas ako. Kumpleto pa notes ko…that is kung sinoli sa akin ng mga t Click https://twitter.com/moooker1
Denn entgegen der landläufigen Meinung nimmt man Gerüche im
Schlaf wesentlich schlechter war.
Überschreitet der systolische Blutdruck über einen längeren Zeitraum Werte von 140 mmHG, spricht
man von Hypertonie (Bluthochdruck).
Eine gesunde Ernährung am Arbeitsplatz ist vor allen Dingen eins: Sie ist schnell gemacht und liegt
nicht schwer im Magen.
Die Methoden, um die Unruhe wiederum zu beruhigen, dürfen unterschiedlich
sein.
I blog frequently and I really appreciate your information. The article has really peaked my interest.
I’m going to bookmark your site and keep checking for new details
about once a week. I opted in for your RSS feed as well.
Thank you for every other informative site.
Where else may just I get that kind of information written in such an ideal way?
I have a project that I’m simply now working on, and I’ve been at
the glance out for such information.
Right here is the perfect blog for anyone who wants to find out about this
topic. You understand so much its almost tough to argue with you (not that I
personally would want to…HaHa). You definitely put a brand
new spin on a topic that has been discussed for ages.
Great stuff, just excellent!