2

My previous question led me to this one - is it possible to install and use git on a shared hosting server (if it's not provided by default) where using apt-get isn't possible?

I've sent a ticket concerning this issue (apt-get not working), and got this response;

This is a shared hosting account and your user is not able to modify or install/uninstall new software on the server.

This functionality is only available on our VPS hosting solutions. For more information please refer to the following link: http://landahost.runhosting.de/vps-hosting.html

Since I only need git, is there a way "around" this issue?

Community
  • 1
  • 1
Tool
  • 12,126
  • 15
  • 70
  • 120
  • Appropriate binaries can be copied over manually (or perhaps built locally). However, be sure this is not again the TOS. The "workabout" is thus to not use administrative-level tools. –  Jul 18 '12 at 22:54
  • 3
    Sounds like you have your answer already from your provider. – Graham Jul 18 '12 at 22:55
  • Install git on your workstation, "publish" to a local directory, then upload that. Or, if that doesn't meet your needs, **describe your needs** and somebody may try to help. – ghoti Jul 18 '12 at 22:55
  • Since svn is supported, I guess the only thing I can do is work on a svn repository and then migrate it to git. – Tool Jul 18 '12 at 22:57
  • 1
    @Tool Or use a *real* host, such as GitHub. – Samy Dindane Jul 18 '12 at 23:10
  • compile it from source (assuming they haven't locked down gcc) – Abe Voelker Jul 19 '12 at 00:12

2 Answers2

2

You are going to want to compile git and move it over to the server. This stackoverflow Q&A does a pretty good job answering your question: Compile git for 32-bit linux on shared hosting

Good luck. Happy coding.

Community
  • 1
  • 1
retrohacker
  • 3,194
  • 4
  • 21
  • 31
0

I ran into this problem with a couple of clients, and I ended up writing a small python script with a php helper to workaround that.

It's not perfect but beats having to deal with uploading / checking files by hand.

check my dvcs-helper.

OneOfOne
  • 95,033
  • 20
  • 184
  • 185