Jump to content

OpenEMM 2013 installation

From TetraWiki
Revision as of 21:28, 15 November 2013 by Piyush (talk | contribs) (Created page with "This document will guide you through some necessary steps, which are needed to update OpenEMM to latest version #cd /home #mv openemm openemm.bk #mysqldump -uroot -proot123 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This document will guide you through some necessary steps, which are needed to update OpenEMM to latest version

  1. cd /home
  2. mv openemm openemm.bk
  3. mysqldump -uroot -proot123 openemm > backup.sql
  4. drop database openemm

OpenEMM's web container Tomcat requires the installation of SEJDK 7 not the GNU version of Java! If Sun's Java SE SDK 7 is not included in your distribution and has not been installed yet, you have to install it by yourself.

1. Install java

Open this link in browser (java.oracle.com) and visit the download section, subsection Java SE (Standard Edition). Download the tarball (*.tar.gz) of the latest Java SE JDK 7 (Java Development Kit).

  1. mkdir /opt/openemm
  2. cp jdk-7u25-linux-i586.tar.gz /opt/openemm
  3. cd /opt/openemm
  4. tar -xvzf jdk-7u25-linux-i586.tar.gz
  5. mkdir -p java
  6. cd jdk1.7.0_25
  7. mv * /opt/openemm/java

Then run this command to check java is working or not...

  1. /opt/openemm/java/bin/java -version

You should get output similar to the following:

java version "1.7.0_25" Java(TM) SE Runtime Environment (build 1.7.0_25-b15) Java HotSpot(TM) Server VM (build 23.25-b01, mixed mode)

2. Install tomcat

Download the latest binary distribution of release 6 from http://tomcat.apache.org. The core package is sufficient. The examples here use Tomcat 6.0.32 – you should adapt them to the latest version of Tomcat 6 as needed

  1. mkdir /opt/openemm/tomcat
  2. cp apache-tomcat-6.0.32.tar.gz /opt/openemm
  3. cd /opt/openemm
  4. tar -zxvf apache-tomcat-6.0.32.tar.gz
  5. cd apache-tomcat*****
  6. mv * /opt/openemm/tomcat

3.Installation of OpenEMM 2013

Get the latest version of the OpenEMM binary code from

http://sourceforge.net/projects/openemm/files/latest/download

  1. cd /home
  2. mv openemm openemm-2013
  3. ln -s openemm-2013 openemm

Change to OpenEMM's directory and unpack the OpenEMM tar.gz. Do not forget option "p" for the tar command, because some files need to have owner and group set to root or special permissions which are preset in the tar.gz

  1. cd /home/openemm
  2. tar xzvpf /tmp/OpenEMM-2013-bin.tar.gz
  3. mkdir -p /usr/share/doc/OpenEMM-2013
  4. mv USR_SHARE/* /usr/share/doc/OpenEMM-2013
  5. rm -r USR_SHARE
  6. chown -R openemm:openemm /home/openemm

4. Read Access to Maillog

OpenEMM requires read access to the log file /var/log/maillog.open file /etc/logrotate.d/syslog and add the following line after the line sharedscripts

  1. vim /etc/logrotate.d/syslog

create 0604

  1. chmod 604 /var/log/maillog
  2. ln -s /var/log/mail.log /var/log/maillog

5.Initialize/Update the OpenEMM and the OpenEMM CMS Database

  1. /etc/init.d/mysqld restart
  2. cd /usr/share/doc/OpenEMM-2013
  3. mysqladmin -u root -proot123 create openemm_cms
  4. mysql -u root -p openemm_cms < openemm_cms-2013.sql
  5. mysqladmin -u root -proot123 create openemm

If you plan to use the redirection service of OpenEMM, open file openemm-2013.sql with a text editor like edit or vim & find and replace the string

  1. vim openemm-2013.sql

http://news1.tetra-campaign.in:8080

wq
  1. mysql -u root -p openemm < openemm-2013.sql

6.Start and Stop OpenEMM

  1. cd /home/openemm
  2. vim .bash_profile

PATH=$PATH:$HOME/bin:/opt/openemm/java/bin JAVA_HOME=/opt/openemm/java

wq
  1. su - openemm
  2. openemm.sh start ( To start the service)
  3. openemm.sh stop ( To stop the service)

7.Test

Open this weburl news1.tetra-campaign.in in browser. And login with below credentials

Username: admin Password: openemm