Table of Contents

Basic Installation

Perform basic installation on Windows

Download and install Java Development Kit 17

Database installation with MySQL 8.0

[mysql]
default-character-set=utf8

[mysqld]
character-set-server=utf8
max_allowed_packet=500M
transaction-isolation=READ-COMMITTED
lower_case_table_names=1
sql-mode = "STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
default-time-zone="+00:00"
create database stages;
create user 'stages'@'localhost' identified by 'pass';
grant all privileges on *.* to 'stages'@'localhost';
flush privileges;
exit;
mysql -uroot -p<mysql-root-password> stages <[PATH TO DUMP FILE\stages7_mysql_content.sql]

Database installation with Oracle 11g, 12c or 19c

Stages installation on Windows

Establish database connection with MySQL

torque.database.default.driver = com.mysql.cj.jdbc.Driver
torque.database.default.adapter = DBMM
torque.database.default.url = jdbc:mysql://localhost:3306/stages?zeroDateTimeBehavior=round&jdbcCompliantTruncation=false
torque.database.default.username = stages
torque.database.default.password = pass

Establish database connection with Oracle

## settings for oracle
torque.database.default.driver=oracle.jdbc.driver.OracleDriver
torque.database.default.url=jdbc:oracle:thin:@<IP/hostname>:<port>/<service_name(pdb)>
torque.database.default.username=<oracle-username>
torque.database.default.password=<oracle-password>

Hints:
Ensure that torque.database.default.adapter = DBMM is commented out or deleted
For none Oracle RAC databases (Cluster) - <port>/<service_name(pdb)> can be replaced by <port>:<sid>

Perform basic installation on Linux

Download and install Java Development Kit 17

Database installation with MySQL 8.0

MySQL installation on RHEL8, OracleLinux8, AlmaLinux8, RockyLinux8 :

[mysqld]
character-set-server=utf8
max_allowed_packet=500M
transaction-isolation=READ-COMMITTED
lower_case_table_names=1
sql-mode = STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
default-time-zone= +00:00

The default-time-zone parameter needs to be adapted to your server’s location if it is located outside of central Europe

MySQL installation on CentOS 7.9

Hint: If you execute “yum install mysql” MariaDB 5 will be installed, MariaDB 8 is not available

CentOS Linux 7 will reach end of life (EOL) on June 30, 2024

character-set-server=utf8
max_allowed_packet=500M
transaction-isolation=READ-COMMITTED
lower_case_table_names=1
sql-mode = STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
default-time-zone= +00:00

The default-time-zone parameter needs to be adapted to your server’s location if it is located outside of central Europe

Create Database, Database User and Grant privileges

create database stages;
create user 'stages'@'localhost' identified by 'Pass.1234';
grant all privileges on *.* to 'stages'@'localhost';
flush privileges;
exit;

Database installation with Oracle 11g, 12c or 19c

Stages Installation on Linux

Establish database connection with MySQL

torque.database.default.driver = com.mysql.cj.jdbc.Driver
torque.database.default.adapter = DBMM
torque.database.default.url = jdbc:mysql:localhost:3306/stages?zeroDateTimeBehavior=round&jdbcCompliantTruncation=false
torque.database.default.username = stages
torque.database.default.password = Pass.1234

Establish database connection with Oracle

## settings for oracle
torque.database.default.driver=oracle.jdbc.driver.OracleDriver
torque.database.default.url=jdbc:oracle:thin:@<IP/hostname>:<port>/<pdb>
torque.database.default.username=<oracle-username>
torque.database.default.password=<oracle-password>

Hint: ensure that torque.database.default.adapter = DBMM is commented out or deleted

(Optional) Start without Root Privileges on Linux

Normally Stages is started by the “root” user and then drops its privileges to the “stages” user after successful startup. In high risk environments, Stages can now also be started with a user id other than root. It can be enabled via the STAGES_NONROOTSTART variable in …/bin/rc.conf. If enabled, the same user id starting the service will also be used to run the service.

Please note that privileged ports below 1024 cannot be opened in this configuration, so the normal HTTPS port 443 cannot be used. The non-root setting can only be used when the Tomcat connectors are configured to use ports higher than 1024 and e.g. a reverse proxy is being used to allow normal access via HTTPS.

How to configure the user that Stages service should run as?

1. Edit stages.service file:

2. Reload system manager configuration with systemctl command:

3. Additionally change the user ownership for all files below stages installation folder with following command:

(Optional) Secure MySQL connection with SSL

If you want to secure your MySQL connection with SSL you need to provide the server certificate to the MySQL driver. To do this follow these steps:

$JAVA_HOME/bin/keytool -importcert -alias MySQLCACert -file ca.pem -keystore truststore.jks -storepass mypassword

* Change the database.properties and append the following to your JDBC url:

&clientCertificateKeyStoreUrl=file:/opt/stages/conf/truststore.jks&useSSL=true&clientCertificateKeyStorePassword=mypassword&enabledTLSProtocols=TLSv1.2

* The complete JDBC url should now look similar like this:

torque.database.default.url = jdbc:mysql://localhost:3306/stages?zeroDateTimeBehavior=round&jdbcCompliantTruncation=false&useSSL=true&clientCertificateKeyStoreUrl=file:/opt/stages/conf/truststore&clientCertificateKeyStorePassword=mypassword

Configure Virus Scanner

If you are using a virus scanner on your Stages server, please exclude all MySQL database files from analysis operations as this might corrupt your database. Also excluding Stages installation directory and Java installation directory might significantly improve Stages performance.

Adjust Java Heap Space

Depending on the desired performance and the purpose of your Stages Server, we strongly suggest to adjust the Java heap space according to the following values:

Total system RAM recommendations:

Java Heap Space recommendations (50% of total system RAM):

Please check System Requirements for Stages for detailed information on the range levels.

To adjust the Java heap space settings please proceed as follows:

Windows:

set TOMCAT_OPTS=–JvmMx= <RAM in MB>

Linux:

CONF_TOMCAT_OPTS=“-Xmx <RAM in MB> m -XX:+UseG1GC -XX-OmitStackTraceInFastThrow”

Install customer specific metamodel (if available)

If a customer specific metamodel has been migrated from Stages V6 to V7 by a Method Park product consultant, this metamodel will be provided as *.mm file. To install the metamodel please proceed as follows:

Windows:

Linux:

Install Fonts

Since Stages 7.9.7.0: How to install the correct fonts

Until Stages 7.9.6.1: How to install the correct fonts

Install Stages license

Windows:

Linux:

Configure TLS/SSL

Please refer to here.

Add CAs to your TrustStore

Please refer to here.

Accessing Stages

After successful installation process - Stages is accessible via web browser by URL https://stages.localhost. As Stages is delivered with a self signed certificate your browser will warn you that the certificate is not trustworthy. For a first test you can instruct the browser to direct you to the website anyhow. After that please configure a trusted certificate.

Change password of "root" user

Log in with the “root” user and the provided password. Click on the “Superuser” link in the bottom left corner of the navigation and change the password to a secure and unique one.

Prepare Stages for productive usage

Users

Delete all users except Superuser and Default, especially the demo users.

Workspaces

Delete the workspaces “Samples” and “Proof of Concept” or move them under “Archive”.

Groups

Delete all groups starting with “Samples …”.

Further setup

Please contact your Method Park Product Consultant to further adapt the Stages process content for productive usage.