centos major upgrade best practice

dandadude

Well-Known Member
Apr 14, 2011
62
1
58
Hi!

I need a best practice to upgrade CentOS 5.7 to CentOS 6.0.

My Cpanel server is running in a XEN domU, and the new server will also be a XEN domU, so the 2 servers can run parallel, but I need to provide a new IP for the new server.

Other questions I don't really know:
- How can I install Cpanel on the new server parallel if I only have 1 licence dedicated to my old server's IP?
- I have read that account migration is the best choice. If this is true, what else do I have to do, is there a howto for this?

Thanks,
Daniel
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
44
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello Daniel,

For the new server, you might contact [email protected] to ask about a possible trial license for the cPanel to cPanel migration. I cannot state how they will handle it as the licensing is at their discretion.

The best route would be to get the new CentOS 6 machine running with cPanel on it, then use WHM > Transfers > Copy multiple accounts/packages from another server area. For any cPanel / WHM configuration settings, you might follow the recommendations in this thread to copy those files over:

http://forums.cpanel.net/f5/process-moving-whm-cpanel-server-new-hardware-184192.html#post831162
 

dandadude

Well-Known Member
Apr 14, 2011
62
1
58
Hi Tristan!

Thanks for the answer! I have checked the thread you have referred but for instance, those commands do not include the migration of special virtualhost settings in:
/usr/local/apache/conf/userdata
And what about /etc/my.cnf...
What about /usr/local/lib/php.ini...

And there must be so many other customizations. Isn't there any completer list of config files to migrate?

It seems a bit scary, because there are so many things that a migration like this can be a real pain in the *ss :)

Thanks,
Daniel
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
44
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
The files provided are the cPanel customized files rather than user system customized files. /etc/my.cnf and /usr/local/lib/php.ini are not cPanel custom template files.

You can certainly add /usr/local/apache/conf/includes and /usr/local/apache/conf/userdata as folders to copy.
 

dandadude

Well-Known Member
Apr 14, 2011
62
1
58
Hi Tristan!

Ok, thanks for the information. It is a bit scary this way, because who knows what I will leave out, but the tools you have mentioned makes the migration much easier!

Thanks very much!

Daniel