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!

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:
    56
    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:
    16,443
    Likes Received:
    416
    Trophy Points:
    583
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nesanjoseph

    nesanjoseph Active Member

    Joined:
    Dec 31, 2010
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    56
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. nesanjoseph

    nesanjoseph Active Member

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

    Nesan Joseph R.
     
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