Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Sep 2008
    Posts
    98

    Default Multiple Servers, One cPanel Login....

    Hello,

    If I have two servers with hostnames of server1.mydomain.com and server2.mydomain.com... both are setup in a cluster in WHM to sync DNS zones.

    Is it possible to have cpanel login for accounts at either server from a central location? meaning.... if someone were to goto: http://cpanel.mydomain.com they could login to thier account (and be sent to the correct server)?

  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

    Assuming you don't want them going to cpanel.TheirDomain.com or TheirDomain.com/cpanel, an old trick used to be to prompt the user for their domain as well and redirect them to http://example.com/cpanel/...

    A better solution would be to use the listaccts function of the XML-API to determine which servers host which users, store that internally on your script and redirect users based on their username (which you match with which server to log them into) to the appropriate server.

  3. #3
    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 sirbrent View Post
    Thanks for the swift reply! Do you happen to know of any examples of the functionality (using XML-API for multi-server login)?
    Using the XML-API for multiple servers is just like using it for a single server, just use the different credentials when connecting to a different server - that's all .

    Documentation for the listaccts function can be found at:

    http://cpanel.net/plugins/xmlapi/listaccts.html

    You can find many code samples for the XML-API on these forums, especially in the Developers section.

  4. #4
    Member
    Join Date
    Sep 2008
    Posts
    98

    Default

    Thanks for the swift reply! Do you happen to know of any examples of the functionality (using XML-API for multi-server login)?

Similar Threads & Tags
Similar threads

  1. Multiple Servers, One cPanel Login....
    By sirbrent in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-17-2008, 03:26 PM
  2. Login form multiple servers on one URL
    By roliboli in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-21-2008, 06:02 AM
  3. Login "Script" For Multiple Servers
    By fowen in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 07-09-2006, 02:27 PM
  4. Multiple servers - 1 login/control panel
    By SeeK6155 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 04-26-2005, 11:28 AM
  5. CPanel on multiple servers
    By dp- in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-02-2004, 02:41 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube