Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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,565
    Likes Received:
    43
    Trophy Points:
    308
    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'?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Active Member

    Joined:
    Jul 22, 2011
    Messages:
    42
    Likes Received:
    3
    Trophy Points:
    58
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. nivekau

    nivekau Active Member

    Joined:
    Jul 22, 2011
    Messages:
    42
    Likes Received:
    3
    Trophy Points:
    58
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    /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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice