Possible Duplicate:
Clone a working Linux server

We have a Linux CentOS server set up to server a php/mysql web application. We would like to move this to a new larger server. It appears the best way to do this is to run the CentOS setup on the new machine and then copy over certain configuration and application files. Is this best approach?

Also, if so, what directories or files on the new box should not be over-written.

link|improve this question
feedback

closed as exact duplicate by Paul Tomblin, Chopper3 Apr 21 '11 at 19:29

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

up vote 2 down vote accepted
  1. Install CentOS latest available (5.6) on new server
  2. Compile Apache, php, mysql etc [make sure that all modules compiled in old server also in new server]
  3. Copy all document root folders and files in same structure.
  4. rsync all MySQL files or take dump and restore it in new server. [if your old server have MySQL 4.x then you should install same version of MySQL on new server too.]
  5. Recreate Apache configuration files
link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.