The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Installing Git on cPanel

Discussion in 'General Discussion' started by jum83, Aug 5, 2014.

  1. jum83

    jum83 Registered

    Joined:
    Aug 4, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello,

    I wish to transfer my Development server to a cpanel server. I have Git installed in my Dev server and would like to install that in cpanel server too. Git is very necessary for us to work and we depend on Git to push to our Production server. So is it possible to install git on cpanel server? I have read that installing Git requires some perl modules which can break cpanel. Is that true?

    I have also read that beginning from version 11.36, cPanel comes with Git. Does this have all the complete functionality of Git?
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The git shipped with cPanel & WHM is installed to /usr/local/cpanel/3rdparty/bin. The binary is not in any of the system paths. If you wish to make this version of git available to all users you'll need to create a symlink so it's in one of the system paths.

    For example:
    Code:
    # ln -s /usr/local/cpanel/3rdparty/bin/git /usr/local/bin/git
    
    Could you give more details on what you consider to be 'complete functionality of Git'?
     
  3. jum83

    jum83 Registered

    Joined:
    Aug 4, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    By complete functionality I mean all those functions that can be done using git which is installed independently. I want to make sure that installing git as a cpanel module does not impair the cpanel functionality as well as the functionality of git. Will I be able to perform all those actions which I can perform in case of git which is installed as on a non-cpanel server?
     
  4. nivekau

    nivekau Member

    Joined:
    Jul 22, 2011
    Messages:
    22
    Likes Received:
    1
    Trophy Points:
    3
    Hi guys,
    Can I install Git via RPM in WHM?
    If so, which one? There's git, git-all, git-cpanel, git-cpanel-all, + about 10 more!

    I'm confused :)

    BTW, I am also running Cloud Linux and CageFS

    Thanks,
    Kevin
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  6. nivekau

    nivekau Member

    Joined:
    Jul 22, 2011
    Messages:
    22
    Likes Received:
    1
    Trophy Points:
    3
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    /usr/local/cpanel/3rdparty/bin/git
    The full path is:

    /usr/local/cpanel/3rdparty/bin/git

    I've modified that post to include the "r".

    Thank you.
     
Loading...

Share This Page