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.

How to detect cPanel installation?

Discussion in 'General Discussion' started by nesanjoseph, Jul 21, 2011.

  1. nesanjoseph

    nesanjoseph Active Member

    Joined:
    Dec 31, 2010
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Can someone help me detect the cPanel installation in a Linux machine? i.e., I would like to install a cpanel plugin [in x3 theme] while running a shell script if cPanel is installed in the machine. Is there any folder path whose existence can be taken as an evidence that cPanel is installed in the machine? or any other presence? [My requirement is similar to seeing a registry and confirming an application's presence!]

    Many thanks,
    Nesan Joseph R.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    194
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm not sure I understand installing a plugin to cPanel if cPanel is installed. But you can find out the cPanel tier with this command:
    /usr/local/cpanel/cpanel -V
     
  3. nesanjoseph

    nesanjoseph Active Member

    Joined:
    Dec 31, 2010
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Thanks. From the command you have mentioned here, I believe the default installation location for cPanel is /usr/local/cpanel/. I would like to know how would I identify if cPanel is installed in a machine or not, if cPanel installation location is different from the default one? Hope now I have asked my question clear!

    Many thanks,
    Nesan Joseph R.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,698
    Likes Received:
    657
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    cPanel is always installed in the same location, so the following command should work in all cases:

    Code:
    # /usr/local/cpanel/cpanel -V
    Thank you.
     
  5. nesanjoseph

    nesanjoseph Active Member

    Joined:
    Dec 31, 2010
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Thank you very much! :)

    Nesan Joseph R.
     
Loading...

Share This Page