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.

Advertisement

77 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!

    😀

  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

  15. 16 Rocky January 21, 2010 at 2:23 pm

    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.

  16. 17 I_Artist January 27, 2010 at 7:48 pm

    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

  17. 19 Derek Basch January 30, 2010 at 2:14 pm

    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

  18. 20 Ben Youngblut March 6, 2010 at 11:53 pm

    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

    • 21 Weber July 19, 2010 at 9:50 pm

      check the file permissions
      to get no doubts, try chmod 777
      if it works you can change it later to something more restrict

    • 22 don undeen February 9, 2011 at 6:19 pm

      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.

  19. 23 Noel March 8, 2010 at 11:49 am

    Just wanted to note that on my godaddy account, ~/.bashrc is ignored — instead you must use ~/.bash_profile.

    Thanks very much for this.

    • 24 YellowShark September 15, 2010 at 1:44 pm

      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).

    • 25 delkant November 27, 2011 at 4:39 pm

      Thanks a lot.. Erik and Noel !! it works!!

  20. 26 joe234321 March 10, 2010 at 12:21 am

    It would be really useful if someone could post the 1.6.9 binaries that are extracted from the rpm already

  21. 27 Matthew Russell April 9, 2010 at 7:01 am

    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.

  22. 28 Hugh April 16, 2010 at 10:33 am

    Brilliant! (and thanks for providing the tar file)

  23. 29 youcef July 18, 2010 at 12:02 pm

    Great work…thank you so much. but me i used .bash_profile instead to .bashrc because export doesn’t save in my session.

  24. 30 Weber July 19, 2010 at 7:01 pm

    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”

  25. 31 Erik Schoster July 29, 2010 at 3:07 pm

    Thank you SO much for this! Client is using godaddy and now I don’t have to go svn-free!

  26. 32 caker August 16, 2010 at 3:36 am

    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 !

    • 33 Matthew Russell August 16, 2010 at 4:15 am

      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.

  27. 35 Jeff October 29, 2010 at 11:19 am

    Thanks! You’re a life saver.

  28. 36 ata November 4, 2010 at 7:51 pm

    thanks guys, another life saved

  29. 37 Cristian Kocza November 12, 2010 at 6:39 am

    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.

  30. 38 Jon z December 29, 2010 at 11:34 am

    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.

  31. 39 Lucho Molina January 14, 2011 at 1:11 am

    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?

  32. 40 Lucho Molina January 14, 2011 at 1:56 am

    Fixed it!

    Had to call the exports from the command line, the .bashrc trick was not working.

  33. 42 Matt February 28, 2011 at 12:35 am

    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.

  34. 43 Derek Kaye March 16, 2011 at 3:59 pm

    Thanks for sharing this, saved me a massive headache!

  35. 46 Tran Quang Thien March 25, 2011 at 1:34 pm

    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.

  36. 47 Steve April 13, 2011 at 9:17 pm

    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/

  37. 48 Hardik May 23, 2011 at 7:16 am

    Are you sure you had a shared hosting account?

    And what about windows hosting ???? 😦

  38. 49 Yashesh Bhatia October 13, 2011 at 1:41 am

    thank you. this worked great for me.

  39. 50 nitinlovesu March 10, 2012 at 9:29 pm

    Is it still working on goDaddy?

  40. 51 Jon Harbour March 6, 2014 at 11:13 am

    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?

  41. 53 hosting mura July 13, 2015 at 10:06 am

    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.

  42. 54 Ashesh October 5, 2015 at 7:49 pm

    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.

  43. 55 alltagsklassiker jan January 31, 2016 at 9:57 am

    Neben automatisierten Posts wie oben beschrieben können Sie die Neuigkeiten gezielt nutzen,
    um Ihr Netzwerk zu informieren und gezielt zu unterhalten.

  44. 56 Medizinischer Ratgeber Online February 12, 2016 at 9:11 pm

    Neben gesunder Ernährung wird körperlicher Aktivität
    eine besondere Bedeutung zugeschrieben.

  45. 57 Gesundheitssendung Im Fernsehen February 27, 2016 at 4:07 am

    Ich finde den neuen Kurs „Fit und gesund – Tipps für ein besseres Leben große Klasse, erfrischend
    und anregend.

  46. 58 Krankheit und Gesundheit March 9, 2016 at 3:44 am

    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.

  47. 59 Atepelton.Tumblr.com March 13, 2016 at 2:14 am

    Reden Sie mit Ihrem Arzt offen über schwere seelische
    Belastungen und Konflikte, wenn vorhanden.

  48. 60 riehner.blogspot.co.at March 18, 2016 at 3:51 am

    Zu einer ausgeglichenen Ernährung gehören Vitamine, Kohlenhydrate, Proteine,
    Mineralstoffe und Spurenelemente.

  49. 61 Medizin Beratung March 20, 2016 at 7:43 pm

    Generell erzeugt Bewegung Elektrizität und Magnetismus in Zellen,
    Geweben, Körperflüssigkeiten und Organen.

  50. 62 rosalindahunt74428 April 8, 2016 at 9:02 am

    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

  51. 63 Service Gesundheit Mediathek April 10, 2016 at 4:28 am

    Denn entgegen der landläufigen Meinung nimmt man Gerüche im
    Schlaf wesentlich schlechter war.

  52. 64 https://twitter.com/ April 13, 2016 at 10:01 am

    Überschreitet der systolische Blutdruck über einen längeren Zeitraum Werte von 140 mmHG, spricht
    man von Hypertonie (Bluthoch­druck).

  53. 65 eriehner101.tumblr.com April 13, 2016 at 10:03 am

    Eine gesunde Ernährung am Arbeitsplatz ist vor allen Dingen eins: Sie ist schnell gemacht und liegt
    nicht schwer im Magen.

  54. 66 Gesundheit Magazine June 2, 2016 at 5:28 am

    Die Methoden, um die Unruhe wiederum zu beruhigen, dürfen unterschiedlich
    sein.

  55. 67 dedicated servers June 9, 2016 at 9:32 am

    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.

  56. 68 travel umroh haji November 5, 2016 at 1:19 am

    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.

  57. 69 Tokina Opera 16-28mm f2.8 October 19, 2020 at 9:10 am

    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!


  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
  3. 3 [原创]在godaddy中使用git | { yeah : 必须哒 } Trackback on July 26, 2010 at 12:19 pm
  4. 4 links for 2011-01-27 « xLight的蓝闪小窝 Trackback on January 27, 2011 at 11:04 am
  5. 5 Rsync Godaddy Alternatives | | aleonaleon Trackback on October 16, 2011 at 7:27 am
  6. 6 Subversion on GoDaddy shared hosting « Spantech Solutions Trackback on November 26, 2011 at 4:24 am
  7. 7 Svn Godaddy Shared Hosting – Cyber Sun Trackback on November 16, 2015 at 9:10 am
  8. 8 Godaddy Subversion Client – +ADw-/title+AD4-Hacked By TURKHACKTEAM.ORG Putin, knowingly and willfully planned airplane attack and the citizen on death. This has caused you to be you're a traitor. Now the citizens of nationalist feelings of the Russi Trackback on January 11, 2016 at 1:33 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s




Topics


%d bloggers like this: