Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

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
share|improve this answer
add comment

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