Solved

Migrate a lamp server to new hardware (Centos 5.3)

Posted on 2009-05-14
3
1,059 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
ID: 24383997
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
ID: 24385609
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
ID: 24392934
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
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.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

14 Experts available now in Live!

Get 1:1 Help Now