Archive for the 'CentOS' Category

How to Install OpenEMM 5.5.1 on VPS

I am still looking for a better solution for our email marketing business, and OpenEMM is one of application I have tested.

OpenEMM is a feature-rich enterprise software for email marketing, newsletters and service mails (transaction mails and event or time triggered mails). OpenEMM offers bounce management, link tracking, lots of realtime statistics and a scripting feature.

Environment,
Host: CentOS4.6_x86_64
virtualization software: OpenVZ
Guest:centos-5-i386-default-5.3-20090330

Because OpenEMM only have i386 release, so I have to create i386 VPS under CentOS4.6_x86_64
Download template:
#wget http://download.openvz.org/template/precreated/contrib/centos-5-i386-default-5.3-20090330.tar.gz
Create VE:
#vzctl create 101 –ostemplate centos-5-i386-default-5.3-20090330 –config vps.basic
other settings, please visit Create My First VE under OpenVZ

Install necessary software and do prepare job:
#yum install mysql-server sendmail-cf MySQL-python
#groupadd openemm
#useradd -m -g openemm -d /home/openemm -c “OpenEMM 5.5.1″ openemm

Download jdk-1_5_0_17-linux-i586.bin:
#chmod +x jdk-1_5_0_17-linux-i586.bin
#./jdk-1_5_0_17-linux-i586.bin
#mkdir -p /opt/openemm.org/software
#mv ./jdk1.5.0_17 /usr/
#ln -s /usr/jdk1.5.0_17 /opt/openemm.org/software/java
Test the JDK:
#/opt/openemm.org/software/java/bin/java -version

#wget http://nchc.dl.sourceforge.net/sourceforge/openemm/OpenEMM-5.5.1-1.i386.rpm
rpm -ihv OpenEMM-5.5.1-1.i386.rpm
mysql openemm

Start OpenEMM
(run as superuser)
Become the user ’openemm’ by running
#su – openemm
Change to the directory containing the startup/shutdown script.
#cd bin
To start the OpenEMM enviroment, run
#nohup OpenEMM.sh start &
To stop OpenEMM
#OpenEMM.sh stop

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride

Clone Backup and Restore OpenVZ VE with vzdump

In order to save time and easily clone, backup and restore OpenVZ VE under CentOS4.6_x86_64, I found a tool named vzdump, it is very easy to use.

Install vzdump
#wget http://download.openvz.org/contrib/utils/vzdump/vzdump-1.0-2.noarch.rpm
#rpm -i vzdump-1.1-1.noarch.rpm
#yum install rsync
I also need
#wget http://dag.wieers.com/rpm/packages/cstream/cstream-2.7.4-3.el4.rf.x86_64.rpm
#rpm -i cstream-2.7.4-3.el4.rf.x86_64.rpm

Backup my first VE,
vzdump --compress --stop 101
it will create two file under /vz/dump folder, vzdump-101.tgz and vzdump-101.log

Restore
to do restore job, first I destroy VE 101
#vzctl stop 101
#vzctl destroy 101
then restore 101
vzdump –restore /vz/dump/vzdump-101.tgz 101

Clone
vzdump –restore /vz/dump/vzdump-101.tgz 102
clone is similar with restore but with a different veid
then do some set up job similar with create a new ve.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride

Create My First VE under OpenVZ

After successfully install OpenVZ under CentOS4.6_x86_64, then I created a simplest VE.


#cd /vz/template/cache
#wget http://download.openvz.org/template/precreated/centos-5-x86_64.tar.gz
#vzctl create 101 --ostemplate centos-5-x86_64 --config vps.basic
#vzctl set 101 --onboot yes --save
#vzctl set 101 --hostname ve01.rubypdf.com --save
#vzctl set 101 --ipadd 192.168.0.101 --save
#vzctl set 101 --numothersock 120 --save
#vzctl set 101 --nameserver 213.133.98.98 --nameserver 213.133.99.99 --save
#vzctl start 101
#vzctl exec 101 passwd
#vzctl enter 101
#exit

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride