Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.
This object is in archive! 

Possibility to install git on cPanel server without breaking it.

imamo shared this idea 12 years ago
Completed

It would be great if we can install git on cPanel server (since we have option to use Cloudlinux + CageFS to properly "jail" users in secure containers).


Git is becoming more popular from month to month among our users because is safer and quicker than FTP and you have versioning control.


I hope you could look into that and find solution.


Regards

Best Answer
photo

git is distributed with cPanel & WHM 11.36:


  1. $ rpm -qi cpanel-git
  2. Name : cpanel-git Relocations: (not relocatable)
  3. Version : 1.7.11.3 Vendor: (none)
  4. Release : 1.cp1136 Build Date: Mon 30 Jul 2012 02:44:39 PM CDT
  5. Install Date: Fri 30 Nov 2012 08:32:28 AM CST Build Host: rpmb-centos-5-32bit
  6. Group : Development/Tools Source RPM: cpanel-git-1.7.11.3-1.cp1136.src.rpm
  7. Size : 13930910 License: GPLv2
  8. Signature : (none)
  9. URL : http://git-scm.com/
  10. Summary : Fast Version Control System
  11. Description :
  12. Git is a fast, scalable, distributed revision control system with an
  13. unusually rich command set that provides both high-level operations
  14. and full access to internals.
  15. The git rpm installs the core tools with minimal dependencies. To
  16. install all git packages, including tools for integrating with other
  17. SCMs, install the git-all meta-package.

Replies (16)

photo
1

Are you sure it breaks it ? CloudLinux gives instructions about how to configure git in cagefs.

photo
2

cPanel recommends not enabling git server-wide on this post: http://forums.cpanel.net/f391/installing-git-294411.html


Given the increasing popularity of git, I would also like to see official cPanel support for the version control system.

photo
3

Chris wrote:

cPanel recommends not enabling git server-wide on this post: http://forums.cpanel.net/f391/installing-git-294411.html

Given the increasing popularity of git, I would also like to see official cPanel support for the version control system.

The comments in that forum thread represent the personal opinion of a tech support person, rather than the official stance of cPanel, Inc.

photo
1

comment removed, duplicate

photo
3

Kenneth - Is there an official cPanel position regarding git? It's fair to suggest your support staff is only providing their personal opinion, but I've searched around and never found an official statement... so that opinion is the closest thing we seem to have.

photo
1

So far we've always installed git from source and never had any issues with perl, I would never have guessed that it could cause such issus. Maybe they didn't have the line of diallowed packages in their yum config file ?


cPanel automaticaly adds the following line to yum.conf on install :


exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*


So perl shouldn't be touched…

photo
5

The "breakage" likely arises from installing git from a yum repository. If anything in the dependency chain relies upon perl, that will be a problem for cPanel & WHM servers as we currently exclude perl from yum. Installing from source is probably the safest option.


We are currently discussing distributing git with cPanel & WHM. We use git for projects and recognize the value it has.

photo
4

Thanks for the clarification - I hope cPanel moves forward with distributing git alongside its software.

photo
1

Kenneth, thanks for this and responding over on the thread.


It sounds like cPanel is taking this one serously. It would be awesome to have an officially supported GIT install wrapped into WHM.

photo
1

It makes me nervous to not have git, but you can always push just the files to your live server and never, ever make any changes there. Still, it would be great to have git on CPanel-driven servers by default.

photo
1

Just wanted to say I would really enjoy having GIT on our servers too, I thought for sure Cpanel would support GIT by now, hopefully soon in the future.

photo
1

a Git button in cPanel would be awesome, I hope support for Git is in the works, with a really easy route to configure it.

photo
1

+1 for Git in cpanel

photo
1

+1 from me too.

photo
1

Make cpanel compatible to the biggest version control system in the world. Get out of your little box and forge ahead cpanel. GOOGLE rmod_pagespeed required install git. Forced to build from source yum install httpd gcc-c++ python subversion gperf make rpm-build git

photo
1

git is distributed with cPanel & WHM 11.36:


  1. $ rpm -qi cpanel-git
  2. Name : cpanel-git Relocations: (not relocatable)
  3. Version : 1.7.11.3 Vendor: (none)
  4. Release : 1.cp1136 Build Date: Mon 30 Jul 2012 02:44:39 PM CDT
  5. Install Date: Fri 30 Nov 2012 08:32:28 AM CST Build Host: rpmb-centos-5-32bit
  6. Group : Development/Tools Source RPM: cpanel-git-1.7.11.3-1.cp1136.src.rpm
  7. Size : 13930910 License: GPLv2
  8. Signature : (none)
  9. URL : http://git-scm.com/
  10. Summary : Fast Version Control System
  11. Description :
  12. Git is a fast, scalable, distributed revision control system with an
  13. unusually rich command set that provides both high-level operations
  14. and full access to internals.
  15. The git rpm installs the core tools with minimal dependencies. To
  16. install all git packages, including tools for integrating with other
  17. SCMs, install the git-all meta-package.

Replies have been locked on this page!