Load Balance Two cPanel Servers

iLinux85

Well-Known Member
Mar 28, 2010
52
2
58
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,
 

bellwood

Well-Known Member
PartnerNOC
Sep 25, 2012
120
55
153
New York
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.