Migrating from CentOS to Debian - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Update/Upgrade (/forum-44.html) +--- Thread: Migrating from CentOS to Debian (/thread-10829.html) |
Migrating from CentOS to Debian - olindata - 05-31-2010 06:46 PM Hi Guys, I have ispCp installed on a CentOS 5.5 server, and have had nothing but trouble since the very beginning (list is too long to even get started ). I'm so sick and tired of it, that I'm thinking of setting up a new server with debian on it, as that seems to be better supported for ispCP. My hosting provider allows me to have the ip that is now on the CentOS machine come up on the Debian machine. My question is: what do I need to do to make all of this work on the new system as well? Here's things I am worried about: a) Do I need to create the same vu20* users on the new box and make sure the same sites are running under the same users? b) Do I need to change something on the database side? My DB server runs separately, so I can just connect the new machine to the old database. I know this is a risky operation, but I feel forced since the CentOS install just keeps giving me trouble RE: Migrating from CentOS to Debian - mr.x - 05-31-2010 10:10 PM Hi, (05-31-2010 06:46 PM)olindata Wrote: a) Do I need to create the same vu20* users on the new box and make sure the same sites are running under the same users? Just take care that the users in the DB and the users on your system are the same. Its the easiest way to have the same users and groups. just rsyn your passwd and group file Quote:b) Do I need to change something on the database side? My DB server runs separately, so I can just connect the new machine to the old database. Set all the domain, aliases and mail settings to "toadd" when you run the request manager on debian. An urgent point is backup of the key files. You will find a lot to this topic in the README under the topic update. /Mr.X RE: Migrating from CentOS to Debian - rethus - 06-09-2010 08:09 PM (05-31-2010 06:46 PM)olindata Wrote: My question is: what do I need to do to make all of this work on the new system as well? Here's things I am worried about: a) jes, that would make thinks much easyer, cause the user are also stored in the ispcp DB, and need to be simlar with the physicaly one I suggest: Use rsync to copy the data to the new machine, change the owner:grp for each user and have a try. TIPP: There are a CLI Script in the wiki.. with it u can rechange the user-settings of a domain-account automaticly like it set in the DB. Have a look here:WIKI There is the file domain.php, look into this file... there is a switch/case/ section for Parm --fix_htdocs_owner this makes all the stuff... use it like this: Quote:/usr/bin/php domain.php --domain test.com --action fix_htdocs_ownershould work. b)Still i now, you don't need to change anything on db-side, such long u use the same ip. TIP: It could be a little bit difficult to switch to another server, which has the same ip, cause u can't do any testing before switching the DNS to the new Server. Be aware if both servers with same ip are at the same time online, may cause in bad side-effects with cconffusing results. RE: Migrating from CentOS to Debian - Zothos - 06-09-2010 08:22 PM we also have a backup and restore script located in a branch: http://isp-control.net/ispcp/browser/branches/backup-restore. If the amount if pages isnt that huge, this may also help you. RE: Migrating from CentOS to Debian - MasterTH - 08-06-2010 01:09 AM 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. RE: Migrating from CentOS to Debian - olindata - 08-06-2010 03:10 PM Thanks for that answer. I still haven't gotten around to moving, but this might make it easier indeed. It should probably be on the wiki as well? Has it been tested? RE: Migrating from CentOS to Debian - MasterTH - 08-06-2010 03:15 PM i already made migrations like this. thats the way i figured out. but feel free to add this into the wiki |