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.

Load Balance Two cPanel Servers

Discussion in 'General Discussion' started by iLinux85, Mar 19, 2014.

  1. iLinux85

    iLinux85 Active Member

    Joined:
    Mar 28, 2010
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Hello

    i have been a week searching all over the internet figure How could i load balance website between two servers share with mysql and apache resources synchronize information and files

    Hope someone here help me about , and would be this thread a good resources for search

    Regards,
     
  2. bellwood

    bellwood Member
    PartnerNOC

    Joined:
    Sep 25, 2012
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    DataCenter Provider
    It's quite easily done believe it or not.

    Use rysync to keep the public_html folders synced and use MySQL replication to handle mysql.

    On one server that you deem the master, use post account creation hooks and the API to create accounts on the other server to keeps things in sync.

    You'll also need a load balancer.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    cPanel currently supports clustering for DNS purposes only. There is support to host your databases on a remote MySQL server, however beyond that, there are no native options that allow for mirroring of your websites or automatic replacement of a network/IP address if the event another fails. I recommend searching our forums for "mirroring" and "high availability" for custom solutions that other users may have implemented. There are lots of discussions about the best ways to do this. EX:

    Load Balancing Between 2 cPanel Servers
    Load Balancing
    Load Balancing Servers
    cPanel Load Balanced Servers

    Also, feel free to add your input to the following active feature requests:

    Active Redundancy or High Availability
    Build in Load Balancing

    Thank you.
     
Loading...

Share This Page