khaledhu

Member
Apr 14, 2008
5
0
51
Hi all,

we are an ISP using cPanel to host our customer websites, we are planing to have a mirror server to the production one, we installed cPanel on the second server but the problem is when the new server restore websites from production server it add new server IP addtess to the configuration files, so if i lost the first server, how can i run the second server to keep my customers up and running without down time.

please help me in this


Thanks
 

stdout

Well-Known Member
Apr 10, 2003
189
7
168
Nelspruit, Mpumalanga, South Africa
cPanel Access Level
Root Administrator
Assuming your intentions are bringing up the original IP from the other server to your mirrored one.
Mass the replace the IP in below files (command included):

Code:
replace '127.0.0.2' 127.0.0.1' -- /var/named/*.db
replace '127.0.0.2' 127.0.0.1' -- /usr/local/apache/conf/httpd.conf
replace '127.0.0.2' 127.0.0.1' -- /var/cpanel/users/*
127.0.0.1 - IP used on original server
127.0.0.2 - Default IP being assigned to accounts automatically.

The commands above will replace 127.0.0.2 with 127.0.0.1.