Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Migrate a lamp server to new hardware (Centos 5.3)

Posted on 2009-05-14
3
Medium Priority
?
1,067 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 750 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

More or less everybody in the IT market understands the basics of Networking, however when we start talking about Storage Networks, things get a bit dizzier, and this is where I would like to help.
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

604 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