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 does WHM "work"?

Discussion in 'General Discussion' started by n000b, Jun 15, 2008.

  1. n000b

    n000b Well-Known Member

    Joined:
    Apr 7, 2005
    Messages:
    142
    Likes Received:
    0
    Trophy Points:
    16
    This might seem like a strange request, but I have a few questions about WHM.

    What sort of scripting/programming language does WHM use - I assume it run's on PHP? If so, does it make use of the existing apache and PHP installation on the server, or does it have it's own?

    Also, how does it safely execute the scripts in the /scripts directory on the server?

    Thanks :)
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    It's actually coded in Perl and is served by its own daemon: cpsrvd. Therefore, it does not make use of Apache nor the PHP installation for Apache.

    I don't know the technical details of "how" it executes scripts. However, I've found it easier to call external scripts in Perl than in PHP.
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Most of what WHM does is performed by code internal to the cpsrvd, whostmgr and whostmgr2 binaries. Only rarely are scripts in the /scripts directory actually used.

    When executing commands/functions within WHM, you will see references to /scripts in the URL, that reference is for legacy purposes.
     
Loading...

Share This Page