Posts

Showing posts from 2012

How to move mail hosting with ISPConfig3 (dovecot, postfix, apache2, …) from CentOS 5 to CentOS 6

28-11-2012 (Here, CentOS 5.8 with ip 10.100.1.2 and CentOS 6.3 with 10.100.1.3) CentOS-5.8 is installing ISPConfig-3.0.3.3 and we will update to ISPConfig-3.0.4.6 on CentOS-6.3 Step1: Backup mailbox and dbispconfig database on CentOS 5.8 Backup all mailbox of users, mail domain #tar czvf /backup/mailbox.tar.gz /var/mail Backup dbispconfig database #mysqldump -u root -p dbispconfig >/backup/dbispconfig.sql #Enter password: …. (password of root user) Step 2: Installing new CentOS 6.3 and configuring services Installing CentOS-6.3 Copy mailbox.tar.gz and dbispconfig.sql from 10.100.1.2 to 10.100.1.3 #scp /backup/mailbox.tar.gz  root@10.100.1.3 :/var/download #scp /backup/dbispconfig.sql  root@10.100.1.3 :/var/download Installing services(Apache2, dovecot, ..) the following http://www.howtoforge.com/perfect-server-centos-6.3-x86_64-apache2-dovecot-ispconfig-3-p6  and finish at step 23 (Install Squirrelmail), have not install step 24 (Install ISPConf

How to move web-hosting with ISPConfig 3 to another server

17:21 13/11/2012 Here, we will have two servers:  old-server  is old ispconfig3 server and  new-server  is new ispconfig3 server that need to moved. Step  1: Backup  all  sites code, databases  and configuration files   in old web hosting server W e need backup all site codes and databases that have in  web hosting server. – Backup code Compress folder  / var/www  (default folder that contain webs code ) . Naming compress file is codeweb.tar.gz # cd /backup # tar -pczf codeweb.tar.gz /var/www (with -p parameter to same ownership when extract) – Backup databases Make a backup of all the mysql databases #cd /backup # mysqldump –opt –user=root –password=XXXXXX –all-databases | gzip > dbispconfig .sql.gz NOTE: change XXXXXX to whatever your root password is – Backup configuration files We need to backup configuration files as php.ini, httpd.conf, passwd, group, shadow, postfix, dovecot, .. #cd / #cp -rf /etc/php.ini /etc/httpd.conf/ etc/passwd /etc/gro

Backup Postfix Mailbox

Backing up your mailboxes is a simple as copying your mailbox folder. This article describes how to backup and restore your Postfix mailboxes using the tar command. To backup the mailbox, type the command below in a terminal window. tar cvzf mailbox.tar.gz /var/mail Replace  /var/mail  with the location of your own mailbox. To restore the mailbox, type the command below in a terminal window. tar xvzf mailbox.tar.gz -C / Replace  mailbox.tar.gz  with the name of your backup file.