|
Lines 6-12
Link Here
|
| 6 |
|
6 |
|
| 7 |
To integrate the OpenEMM 2015 to the installed Tomcat add this |
7 |
To integrate the OpenEMM 2015 to the installed Tomcat add this |
| 8 |
chunk to the server.xml of Tomcat: |
8 |
chunk to the server.xml of Tomcat: |
| 9 |
TOMCAT_HOME= %%PREFIX%%/apache-tomcat-8.0/lib/ |
9 |
TOMCAT_HOME= %%PREFIX%%/apache-tomcat-8.5/lib/ |
| 10 |
|
10 |
|
| 11 |
vi TOMCAT_HOME/conf/server.xml |
11 |
vi TOMCAT_HOME/conf/server.xml |
| 12 |
|
12 |
|
|
Lines 28-33
Link Here
|
| 28 |
<!-- add this part END --> |
28 |
<!-- add this part END --> |
| 29 |
</Engine> |
29 |
</Engine> |
| 30 |
|
30 |
|
|
|
31 |
Change the Engine name="Catalina" to point to defaultHost="OpenEMM" |
| 31 |
Don't forget securing tomcat, or add a httpd in front secured |
32 |
Don't forget securing tomcat, or add a httpd in front secured |
| 32 |
|
33 |
|
| 33 |
additional for the jndi database connect: |
34 |
additional for the jndi database connect: |
|
Lines 38-67
Link Here
|
| 38 |
.... |
39 |
.... |
| 39 |
<Resource |
40 |
<Resource |
| 40 |
name="jdbc/openemm_db" |
41 |
name="jdbc/openemm_db" |
| 41 |
driverClassName="com.mysql.jdbc.Driver" |
42 |
driverClassName="com.mysql.cj.jdbc.Driver" |
| 42 |
type="javax.sql.DataSource" |
43 |
type="javax.sql.DataSource" |
| 43 |
maxCount="30" |
44 |
maxTotal="30" |
| 44 |
maxActive="50" |
|
|
| 45 |
maxWait="10000" |
| 46 |
auth="Container" |
45 |
auth="Container" |
| 47 |
username="agnitas" |
46 |
username="agnitas" |
| 48 |
password="openemm" |
47 |
password="openemm" |
| 49 |
url="jdbc:mysql://localhost/openemm?useUnicode=yes&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&zeroDateTimeBehavior |
48 |
url="jdbc:mysql://localhost/openemm?useUnicode=yes&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&zeroDateTimeBehavior=convertToNull" |
| 50 |
=convertToNull" |
|
|
| 51 |
/> |
49 |
/> |
| 52 |
|
50 |
|
| 53 |
<Resource |
51 |
<Resource |
| 54 |
name="jdbc/openemm_cms_db" |
52 |
name="jdbc/openemm_cms_db" |
| 55 |
driverClassName="com.mysql.jdbc.Driver" |
53 |
driverClassName="com.mysql.cj.jdbc.Driver" |
| 56 |
type="javax.sql.DataSource" |
54 |
type="javax.sql.DataSource" |
| 57 |
maxCount="30" |
55 |
maxTotal="30" |
| 58 |
maxActive="50" |
|
|
| 59 |
maxWait="10000" |
| 60 |
auth="Container" |
56 |
auth="Container" |
| 61 |
username="agnitas" |
57 |
username="agnitas" |
| 62 |
password="openemm" |
58 |
password="openemm" |
| 63 |
url="jdbc:mysql://localhost/openemm_cms?useUnicode=yes&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&zeroDateTimeBeha |
59 |
url="jdbc:mysql://localhost/openemm_cms?useUnicode=yes&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&zeroDateTimeBehavior=convertToNull |
| 64 |
vior=convertToNull" |
|
|
| 65 |
/> |
60 |
/> |
| 66 |
</Context> |
61 |
</Context> |
| 67 |
|
62 |
|
|
Lines 81-100
Link Here
|
| 81 |
# to keep this change permanent change cron info in /etc/newsyslog.conf |
76 |
# to keep this change permanent change cron info in /etc/newsyslog.conf |
| 82 |
# change line /var/log/maillog 644 7 * @T00 JC |
77 |
# change line /var/log/maillog 644 7 * @T00 JC |
| 83 |
|
78 |
|
| 84 |
if not change tracking of mail sending / bounces is not working correct |
79 |
#if not change tracking of mail sending / bounces is not working correct |
| 85 |
|
80 |
|
| 86 |
# don't forget to add the link for mysql driver jar to tomcat |
81 |
# don't forget to add the link for mysql driver jar to tomcat |
|
|
82 |
# if not already installed add: pkg install mysql-connector-java |
| 87 |
ln -s %%PREFIX%%/share/java/classes/mysql-connector-java.jar TOMCAT_HOME/lib |
83 |
ln -s %%PREFIX%%/share/java/classes/mysql-connector-java.jar TOMCAT_HOME/lib |
| 88 |
chown -h www TOMCAT_HOME/lib/mysql-connector-java.jar |
84 |
chown -h www TOMCAT_HOME/lib/mysql-connector-java.jar |
| 89 |
|
85 |
|
| 90 |
# setup the database scripts |
86 |
# setup the database scripts |
|
|
87 |
#in the installed mysql add 2 databases |
| 91 |
|
88 |
|
| 92 |
in the installed mysql add 2 databases |
|
|
| 93 |
|
| 94 |
create database openemm; |
89 |
create database openemm; |
| 95 |
create database openemm_cms; |
90 |
create database openemm_cms; |
| 96 |
|
91 |
|
| 97 |
grant the privileges for the 2 db's from where you want to access |
92 |
#grant the privileges for the 2 db's from where you want to access |
| 98 |
grant all privileges on openemm.* to agnitas@'X.Y.%' identified by 'openemm'; |
93 |
grant all privileges on openemm.* to agnitas@'X.Y.%' identified by 'openemm'; |
| 99 |
grant all privileges on openemm_cms.* to agnitas@'X.Y.%' identified by 'openemm'; |
94 |
grant all privileges on openemm_cms.* to agnitas@'X.Y.%' identified by 'openemm'; |
| 100 |
|
95 |
|
|
Lines 111-119
Link Here
|
| 111 |
|
106 |
|
| 112 |
# startup config for tomcat and OpenEMM |
107 |
# startup config for tomcat and OpenEMM |
| 113 |
add to /etc/rc.conf |
108 |
add to /etc/rc.conf |
| 114 |
# Tomcat8 Server startup with initial config params for OpenEMM |
109 |
# Tomcat85 Server startup with initial config params for OpenEMM |
| 115 |
tomcat8_enable="YES" |
110 |
tomcat85_enable="YES" |
| 116 |
tomcat8_java_opts="-server -Djava.awt.headless=true -Xms256m -Xmx512m -XX:MaxPermSize=256m -Xss256k" |
111 |
tomcat85_java_opts="-server -Djava.awt.headless=true -Xms256m -Xmx512m -Xss256k" |
| 117 |
|
112 |
|
| 118 |
# Openemm 2015 |
113 |
# Openemm 2015 |
| 119 |
openemm2015_enable="YES" |
114 |
openemm2015_enable="YES" |
|
Lines 120-126
Link Here
|
| 120 |
|
115 |
|
| 121 |
#NOW you are ready to start the tomcat and OpenEMM |
116 |
#NOW you are ready to start the tomcat and OpenEMM |
| 122 |
|
117 |
|
| 123 |
service tomcat8 start |
118 |
service tomcat85 start |
| 124 |
service openemm2015 start |
119 |
service openemm2015 start |
| 125 |
or |
120 |
or |
| 126 |
%%PREFIX%%/etc/rc.d/openemm2015 start |
121 |
%%PREFIX%%/etc/rc.d/openemm2015 start |