Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd February 2010, 16:45
bswinnerton bswinnerton is offline
Senior Member
 
Join Date: Jul 2007
Location: Connecticut, US
Posts: 502
Thanks: 51
Thanked 16 Times in 13 Posts
Default How to go about migrating from ISPConfig 2 to 3

Hey everyone,

I'm thinking more and more about creating a new virtual machine for ISPConfig 3. Right now I'm running ESXi on my server and have ISPconfig 2 installed on it with around 10-15 domains and 20-30 email accounts.

How should I go about migrating from ISPconfig 2 to 3, while maintaining all of the user accounts, passwords and emails and domains?

I don't really mind manually re-entering things like domains and DNS info, but the thing that I definitely cannot lose from the old server is the email addresses, emails and their passwords (simply because I cannot manually re-create them).

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 3rd February 2010, 22:17
jerume jerume is offline
Junior Member
 
Join Date: Nov 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

I will be very interested in an answer too

Last edited by jerume; 3rd February 2010 at 22:22. Reason: it was in french sorry :)
Reply With Quote
  #3  
Old 3rd February 2010, 22:22
damir damir is offline
Senior Member
 
Join Date: Jun 2006
Posts: 375
Thanks: 11
Thanked 51 Times in 42 Posts
Default

I'm afraid that you are left with the manual moving of the files. Ispc2 and 3 are not compatible because they are two totally different systems.

You need to re-create all the users and emails but both ispc 2 and 3 are using Courier so it is possible to move emails between servers.

I'm in process to migrate one of my iscp2 servers to ispc3 and alot of stuff needs to be re-created but the data can be moved between servers.
Reply With Quote
  #4  
Old 3rd February 2010, 22:24
jerume jerume is offline
Junior Member
 
Join Date: Nov 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

and what about the passwords ?

Last edited by jerume; 3rd February 2010 at 22:24. Reason: no smiley
Reply With Quote
  #5  
Old 3rd February 2010, 23:13
damir damir is offline
Senior Member
 
Join Date: Jun 2006
Posts: 375
Thanks: 11
Thanked 51 Times in 42 Posts
Default

Passwords need to be re-created as well because ispc3 uses virtualusers that are not stored and treated as unix users. They are all stored in database.
Reply With Quote
  #6  
Old 3rd February 2010, 23:33
bswinnerton bswinnerton is offline
Senior Member
 
Join Date: Jul 2007
Location: Connecticut, US
Posts: 502
Thanks: 51
Thanked 16 Times in 13 Posts
Default

Can we somehow use the /etc/shadow or /etc/passwd file to recreate the passwords?
Reply With Quote
  #7  
Old 4th February 2010, 12:08
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

The passwords in ispconfig 2 AND 3 use the same encryption method. This means that you can copy them from the /etc/passwd file to the password field in the mail_user, ftp_user and shell_user table without having to know them in cleartext nor having to recreate them.

Regarding the email accounts, in ispconfig 3, there is no separate username for email accounts as the email address itself is the username, this means that after you recreated the email mailboxes, you will have to tell your users that the new username is the email address and the password will remain the same if you copy it as explained above.

When it comes to the mailbox contnst, ispconfig 2 and 3 use both courier with maildir format, so you can copy the content of the maildir directories to the the new server. Just make sure that all maildirs in ispconfig 3 are owned by user and group vmail instead ofy a individual system user, so just chown them after you copied the files.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
bswinnerton (4th March 2010)
  #8  
Old 3rd March 2010, 18:18
bswinnerton bswinnerton is offline
Senior Member
 
Join Date: Jul 2007
Location: Connecticut, US
Posts: 502
Thanks: 51
Thanked 16 Times in 13 Posts
Default

Thanks Till,

What should the permissions look like on the web side? www-data owner?

Also, what are the main folders I should be bringing over? Anything besides /var/www/web*
Reply With Quote
  #9  
Old 4th March 2010, 11:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

The files inside the website directory (the "web" subdirectory created by ispconfig 3) should have the same owner then the "web" directory itself.

Quote:
Also, what are the main folders I should be bringing over? Anything besides /var/www/web*
You can not bring over any main folders as the folder structure between ispconfig 2 and 3 is different. Also do not copy over the content of /var/www/web* as they are not compatibe, you can only copy over /var/www/web*/web/ to the /var/www/domain.com/web/ folder on the new server. and then after you created the email mailboxes, you can copy the content of e.g. /var/www/web*/users/user1/Maildir/* to /var/vmail/domain.com/user/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 4th March 2010, 14:41
bswinnerton bswinnerton is offline
Senior Member
 
Join Date: Jul 2007
Location: Connecticut, US
Posts: 502
Thanks: 51
Thanked 16 Times in 13 Posts
 
Default

Thanks once again Till!

If it weren't for you guys, I wouldn't even have a server
Reply With Quote
Reply

Bookmarks

Tags
migrate, upgrade

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
Loads of mysql connections to dbispconfig StrikerNL General 2 5th March 2009 14:31
ISPConfig installation into multiple OpenVZ containers letezo Installation/Configuration 11 3rd March 2009 22:47
Migrating from Virtualmin to ISPConfig xare Installation/Configuration 3 16th July 2006 12:58
ISPConfig 2.3.1-dev released till General 0 8th May 2006 22:18
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16


All times are GMT +2. The time now is 20:36.


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