Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th July 2012, 20:41
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default Migrate to new server

My server needs to be upgraded to Ubuntu 12.
What are the right steps to "easily" migrate to the new server?
(db's, data, mail, ispconfig etc)
Reply With Quote
Sponsored Links
  #2  
Old 8th August 2012, 14:11
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Pffff as a linux noob this is some job.....

For example on the old server I want to copy /var folder (using scp) to the new server keeping file permissions. I tried to copy them but access is denied because only root can copy these files?

I used
Quote:
scp -rp /var administrator@newserver:/var
Is this command correct?

How can I get root access to the new server to be able to copy the files to the new server?
Reply With Quote
  #3  
Old 9th August 2012, 14:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

On Ubuntu, you must enable the root account by setting a root password:

Code:
sudo passwd root
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 10th August 2012, 14:30
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Falko,
Did it but when trying to connect I get Permission denied.

Quote:
ssh root@myip
root@myip's password:
Permission denied, please try again.
Reply With Quote
  #5  
Old 10th August 2012, 14:34
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Changed "PermitRootLogin yes" in /etc/ssh/sshd_config and restarted ssh
Quote:
service ssh restart
and it works now!
Reply With Quote
  #6  
Old 10th August 2012, 14:43
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

2nd question.

I want to copy the files from the old server to the new server. How should I do this? I want to keep the permissions and owners like it is on the old server.
Reply With Quote
  #7  
Old 13th August 2012, 11:48
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Quote:
Originally Posted by skoena View Post
My server needs to be upgraded to Ubuntu 12.
What are the right steps to "easily" migrate to the new server?
(db's, data, mail, ispconfig etc)
There's a saying in Dutch (in my best English translation): I don't see the forrest because of all the trees.
Untill now it's not clear how to do a "good" migration to a new server. Is it an idea to create a sticky about this?

*I copied (with rsync) all the data from
/var/www
/etc
/var/log/ispconfig/httpd
/var/vmail
/var/lib/mysql
(databases were not available on new server when I did this, so I dumped the db's on the old server and copied them to the new server with:
Quote:
mysqldump --opt --user=root --password=xxxxxxxx --all-databases | gzip > mysql_backup.sql.gz
) For some reason the dbispconfig database was not imported so I imported it by hand via phpmyadmin.

Do I need to copy more or is this enough??
Is there anything I missed?

Last edited by till; 29th November 2012 at 08:26.
Reply With Quote
  #8  
Old 3rd September 2012, 11:43
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Till/Falko,
Idea to create write a sticky or howto how to backup a server running ispconfig and restoring it to a new server?

I now try to combine a lot of posts but still not clear what to do and which steps to do.

Rudolf.

Last edited by skoena; 3rd September 2012 at 11:46.
Reply With Quote
  #9  
Old 1st December 2012, 14:15
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Can somebody make a post explaining all the steps needed to copy all contents from 1 server to another server? (files, db's, changes to ispconfig files eg passwords etc etc)

Can somebody make a "howto"?
Reply With Quote
  #10  
Old 18th December 2012, 19:46
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,768
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Here the steps:


1) Backup the following directories on the old server: /var/www, /var/vmail and /etc, ensure that you preserve permissions e.g. with "tar pczf backupfile.tar.gz /directory/to/backup".
2) backup all mysql databases.
3) install ispconfig on the new server.
4) backup the new dbispconfig database and empty the database afterwards. Then restore the database of the old server.
5) copy all users and groups of the websites (users are web1, web2, ... , groups are client1, client2, ..., etc.) from the files /etc/passwd, /etc/shadow, /etc/group and /etc/gshadow from the old server to the new server. Copy only the lines of the users and groups, not the whole files! and make a backup of the files before you change them.
6) restore the contents of /var/vmail and /var/www on the new server.
7) restore the databases of the clients
8) Login to ispconfig, go to tools > resync, check all checkboxes and click on start and wait a few minutes to let ispconfig write missing config files.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following 6 Users Say Thank You to till For This Useful Post:
DaRKNeSS666NL (23rd December 2012), Eleven Cool (5th February 2013), skoena (19th December 2012), stef157 (23rd March 2013), stefanm (1st January 2013), Turbanator (30th April 2013)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
500 internal error after upgrade abintipl Installation/Configuration 9 18th July 2012 12:51
ISPConfig 3 Installation - Postfix queue stuck andrew971218 Installation/Configuration 21 15th July 2011 14:42
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
Rejecting outbound mail tristanlee85 General 11 20th May 2007 17:04
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 15:44


All times are GMT +2. The time now is 11:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.