Solved

Migrate a lamp server to new hardware (Centos 5.3)

Posted on 2009-05-14
3
1,058 Views
Last Modified: 2013-12-26
I need to move my LAMP installation (Centos 5.3, Apache 2, Mysql, Bind, Postfix, all the installed Perl modules, SSL certificate etc.)

to new hardware

old hardware: compaq proliant DL360 g3 in RAID 1 (2 disks à 30GB)
new: Compaq Proliant DL360 g3 in RAID 1 (2 disks à 130GB)

Now my question: what is the simplest way to achieve this?

- have I to install centos 5.3 on the new server, or can I create an image of the old server?
- it would be great if someone could help with a STEP BY STEP guide

Current status: RAID 1 has been configured on the new server

Thanks
0
Comment
Question by:migarama1
  • 2
3 Comments
 
LVL 10

Expert Comment

by:elf_bin
Comment Utility
Simplest way?  Keep the disks the same (RAID and so on) and use clonezilla (http://clonezilla.org/) to clone the entire machine to the new one (remembering to switch off the old one before you switch on the new one).  You may have a few issues with hardware drivers, but the OS *should* sort that out for you.
0
 

Author Comment

by:migarama1
Comment Utility
The old server is co-located in another city. Best would be if I could setup the new box at home and once finished, bring it in to the server center.

Installation of Centos on the new box is not a problem. I need to know which folder I need from the old machine to preserve theconfiguration of httpd, Mysql, Bind, Postfix, all the installed Perl modules, SSL certificate etc.

So I could pack each folder and download it
i.e. the folder /home with all the web data
 

0
 
LVL 10

Accepted Solution

by:
elf_bin earned 250 total points
Comment Utility
They could be anywhere as it is perfectly possible to configure these daemons anywhere and just tell the daemons where to look for the configuration files at start-up.  But the defaults are:
/etc/httpd/ is where the Apache configurations and so on are kept.
/etc/my.cnf MySQL database (don't forget the database though)
/var/named/ is the DNS stuff (could be chrooted to there too) & /etc/named.conf
/usr/lib/perl5/site_perl/ is where you're *supposed* to install your site specific perl stuff
/var/www/perl is where the /perl/ is (by default) in the URL of httpd
The web site stuff (including logs and so on) is supposed to be in /var/www/
/etc/sysconfig/httpd httpd configuration file (most people probably don't use this and just use /etc/httpd/conf/httpd.conf
/etc/postfix for postfix (don't forget your mail directory too)
Probably best to look at the web sites in /etc/httpd/conf.d/ & each config file will tell you where the web site gets it's data from and to.

Hope this helps.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now