Current time: 12-23-2024, 02:45 PM Hello There, Guest! (LoginRegister)


Post Reply 
Migrating from CentOS to Debian
Author Message
MasterTH Offline
Member
***

Posts: 570
Joined: Feb 2009
Reputation: 4
Post: #5
RE: Migrating from CentOS to Debian
got a good solution for you

1. Make fresh installation of ispcp on the new servers but use the same mysql-root-pw and vftp, pma passwords (this makes it much easier)

2. following files are needed to rsync to the new server into a backup-folder

/etc/passwd
/etc/group
/etc/ispcp <- whole folder
/var/www/ispcp/engine/ispcp-db-keys.pl
/var/www/ispcp/engine/messenger/ispcp-db-keys.pl

now rsync /var/www/virtual, /var/log/, /var/mail
mysqldump -uroot -p --all-databases > mysqldump.sql
and rsync the dump-file

3. now backup the new files of the new server into another backup-place
/etc/passwd
/etc/group
/etc/ispcp <- whole folder
/var/www/ispcp/engine/ispcp-db-keys.pl
/var/www/ispcp/engine/messenger/ispcp-db-keys.pl

take a look into the old passwd & group files, there are some vu20xx users and groups. Add them into the new one. Copy the whole entry from passwd into passwd~, also group-file.

4.
make a mysqldump from new server
restore the mysqldump from old server

5. login into the pma and add a user
the username and password you'll find in /etc/mysql/debian.cnf
the user should've the same rights as the root-users has
(this step is really important, if the user doesn't exists the mysqldaemon wouldn't start again) try to restart the mysql daemon before rebooting the system.
Replace the Server-IP with the new one (if it changes)

6. now copy the backuped files from old server
/var/www/ispcp/engine/ispcp-db-keys.pl
/var/www/ispcp/engine/messenger/ispcp-db-keys.pl
into the right place

7. check the file permissions on /var/mail/virtual
should be vmail.mail if not, change it.

8. run regeneration-progress (docu will show u how to do, but change status to 'toadd')


if everything worked fine, the ispcp should regenerate everything on the new server without having any problem.
(This post was last modified: 08-06-2010 01:14 AM by MasterTH.)
08-06-2010 01:09 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Migrating from CentOS to Debian - olindata - 05-31-2010, 06:46 PM
RE: Migrating from CentOS to Debian - mr.x - 05-31-2010, 10:10 PM
RE: Migrating from CentOS to Debian - MasterTH - 08-06-2010 01:09 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)