Posts

Showing posts with the label ISPConfig

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 (I...

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 / ...

Hosting ISPConfig on CentOS 5

1.Install Some Software First we import the GPG keys for software packages: rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* Enable the contrib and centosplus repositories: vi /etc/yum.repos.d/CentOS-Base.repo Edit the lines below: [base] [...] exclude=postfix [...] [update] [...] exclude=postfix [...] [centosplus] [...] enabled=1 includepkgs=postfix [...] [contrib] [...] enabled=1 [...] Replace all with the following content: [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 exclude=postfix-* #released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 ex...