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: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 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 12th August 2012, 12:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You can do this with rsync: http://www.howtoforge.com/mirroring_with_rsync
__________________
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
  #8  
Old 12th August 2012, 18:12
zbuzanic zbuzanic is offline
Member
 
Join Date: Sep 2011
Location: Zagreb
Posts: 79
Thanks: 43
Thanked 20 Times in 13 Posts
Default

Hi, I had a need to move twice so first time I've just compressed www and copied on new server with ispconfig and recreated pages. Dunno why but I had troubles with server after doing that. Server would randomly crash. Anyway then I moved to another server but this time I've rsynced almost everything. Problem is I've already installed ispconfig with tutorial and then moved all data. That caused some trouble with cron, mysql, and user accounts but it was all fixable (config files or passwords were wrong) and it's working now without a problem, So rsync worked for me great. Anyway what failed is ssh logins, dunno why but whatever I did, I was unable to login to new server so I had to delete and create again ssh account for all users.
__________________
ISPConfig -> the best open source control panel
Reply With Quote
  #9  
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
  #10  
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
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 15:23.


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