Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Apr 2005
    Posts
    142

    Default How does WHM "work"?

    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. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by n000b View Post
    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
    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. #3
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by n000b View Post
    Also, how does it safely execute the scripts in the /scripts directory on the server?

    Thanks
    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.

Similar Threads & Tags
Similar threads

  1. How Do I Redirect "Cpanel" and "WHM" URL to something anonymous?
    By Wabda20 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 07-15-2011, 01:19 PM
  2. Add "delete list" button in WHM on "Reset a Mailman Password" page
    By cPanelMary in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 01-08-2011, 12:19 AM
  3. Replies: 2
    Last Post: 01-27-2009, 04:39 PM
  4. "Space Used" in WHM "Accounts List" shows an incorrect information
    By John K in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-12-2004, 12:39 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube