InContext Server Installation

From Lingoport Wiki
Revision as of 19:55, 1 March 2019 by MaryH (talk | contribs) (Installation Steps)
Jump to: navigation, search

InContext Server Installation Requirements

The InContext Server requires the following:

  • Tomcat 8.5.x
  • Java 8
  • MySQL 5.5.3+

Since the Lingoport Suite already requires Java and MySQL, the only additional requirement for the InContext Server is Tomcat.

Installation Steps

1. Download and install the latest Tomcat 8.5.x from https://tomcat.apache.org/download-80 and place it in, for example, /usr/local/tomcat, which I will refer to as tomcat.

2. Modify tomcat/conf/server.xml and change the port number from 8080 (used by Jenkins) to 8081

3. Create an empty MySQL database, named incontext:

shell> mysql -u root –p<your_password> 
mysql> CREATE DATABASE incontext DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci; 

4. Create a database user and password, replacing dbuser and dbpass with your configured values:

shell> mysql -u root –p<your_password> 
mysql> GRANT ALL PRIVILEGES ON *.* TO 'dbuser'@'localhost' IDENTIFIED BY 'dbpass' WITH GRANT OPTION; 
mysql> GRANT ALL PRIVILEGES ON *.* TO 'dbuser'@'%' IDENTIFIED BY 'dbpass' WITH GRANT OPTION;

InContext Server Files

There are three files that comprise the InContext Server:

  • incontext-server.war
  • incontext-server.sh
  • IncontextServerConfig.groovy

The war file must be placed under the tomcat/webapps directory. The incontext-server.sh file must be configured and placed in the tomcat directory. The IncontextServerConfig.groovy file must be configured and placed in the tomcat directory.