View | Details | Raw Unified | Return to bug 196516 | Differences between
and this patch

Collapse All | Expand All

(-)files/pkg-message.in (+84 lines)
Line 0 Link Here
1
To integrate the OpenEMM 2013 R2 to the installed Tomcat add this
2
chunk to the server.xml of Tomcat:
3
TOMCAT_HOME= %%PREFIX%%/apache-tomcat-8.0/lib/
4
5
vi TOMCAT_HOME/conf/server.xml
6
7
   <Engine>
8
	.....
9
	<!-- add this part START -->
10
	<Host name="OpenEMM"  appBase="webapps-empty" autoDeploy="true" unpackWARs="false" xmlValidation="false" xmlNamespaceAware="false">
11
		<Alias>localhost</Alias>
12
		<Valve className="org.apache.catalina.valves.AccessLogValve"
13
			resolveHosts="false" directory="${catalina.base}/logs/access/" rotatable="true" buffered="true"
14
			prefix="" suffix="-access_openemm.log" fileDateFormat="yyyyMMdd"
15
			pattern='%a %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"' />
16
		<Context cookies="false" docBase="%%APP_HOME%%/webapps/openemm" path="/openemm" reloadable="true" >
17
			<JarScanner scanAllDirectories="true" scanBootstrapClassPath="true"/>
18
		</Context>
19
		<Context cookies="false" docBase="%%APP_HOME%%/webapps/openemm-ws" path="/openemm-ws2" reloadable="true" />
20
		<Context docBase="%%APP_HOME%%/webapps/manual" path="/manual" allowLinking="true" />
21
	</Host>
22
	<!-- add this part END -->
23
   </Engine>
24
25
Don't forget securing tomcat, or add a httpd in front secured 
26
27
# IMPORTANT sendmail is completly controlled from OpenEMM!
28
# It stops and starts sendmail
29
# check if sendmail is enabled
30
sendmail_enable="YES"
31
32
# check also if you have a symlink to sendmail
33
ln -s /etc/rc.d/sendmail /etc/rc.d/
34
35
# update the read right on the maillog file
36
chmod 644 /var/log/maillog
37
38
# to keep this change permanent change cron info in /etc/newsyslog.conf
39
# change line /var/log/maillog                      644  7     *    @T00  JC 
40
41
if not change tracking of mail sending / bounces is not working correct
42
43
# don't forget to add the link for mysql driver jar to tomcat
44
ln -s %%PREFIX%%/share/java/classes/mysql-connector-java.jar TOMCAT_HOME/lib
45
chown -h www TOMCAT_HOME/lib/mysql-connector-java.jar
46
47
# setup the database scripts 
48
49
in the installed mysql add 2 databases
50
51
create database openemm;
52
create database openemm_cms;
53
54
grant the privileges for the 2 db's from where you want to access
55
grant all privileges on openemm.* to agnitas@'X.Y.%' identified by 'openemm'; 
56
grant all privileges on openemm_cms.* to agnitas@'X.Y.%' identified by 'openemm';
57
58
flush privileges;
59
60
# import the inital data
61
mysql -u root -p openemm < %%PREFIX%%/share/doc/openemm2013/openemm-2013.sql
62
mysql -u root -p openemm_cms < %%PREFIX%%/share/doc/openemm2013/openemm_cms-2013.sql
63
64
#additional config for db acces can be done 
65
%%PREFIX%%/openemm2013/webapps/openemm/WEB-INF/classes/emm.properties
66
or
67
%%PREFIX%%/openemm2013/webapps/openemm/WEB-INF/classes/cms.properties
68
69
# startup config for tomcat and OpenEMM
70
add to /etc/rc.conf
71
# Tomcat8 Server startup with initial config params for OpenEMM
72
tomcat8_enable="YES"
73
tomcat8_java_opts="-server -Djava.awt.headless=true -Xms256m -Xmx512m -XX:MaxPermSize=256m -Xss256k"
74
75
# Openemm 2013
76
openemm2013_enable="YES"
77
78
#NOW you are ready to start the tomcat and OpenEMM
79
80
service tomcat8 start
81
82
service openemm2013 start
83
or
84
%%PREFIX%%/etc/rc.d/openemm2013 start

Return to bug 196516