Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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

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