ONYX - 9.0 - Installation - Installation ONYX Server sur Linux/en

Différence entre versions

De MappingDoc
(Page créée avec « The Mapping section for httpd.conf is identified by means of <code>#BEGIN_MAPPING_...</code> »)
 
(51 révisions intermédiaires par le même utilisateur non affichées)
Ligne 7 : Ligne 7 :
 
ONYX Server Linux is compatible with the following operating system versions:
 
ONYX Server Linux is compatible with the following operating system versions:
  
<div class="mw-translate-fuzzy">
+
*Red Hat Enterprise Linux 7 (RHEL7) or Red Hat Enterprise Linux 8 (RHEL8)
*Red Hat Enterprise Linux 7
+
*CentOS 7 or CentOS 8
*CentOS 7
 
</div>
 
  
  
Ligne 16 : Ligne 14 :
  
 
*1 Gb minimum to unzip the installation package
 
*1 Gb minimum to unzip the installation package
*500 Mb minimum for installation
+
*5 Gb minimum for installation
  
  
Ligne 25 : Ligne 23 :
  
 
*2 VCPU
 
*2 VCPU
*Processor type x86-32 or x86-64
+
*Processor type x86-64
*RAM: 2 Go minimum, 4 Go recommended. Possibly more depending on the complexity of your architecture
+
*RAM: 2 Go minimum, 4 Go recommended. Possibly more depending on the complexity of the architecture
  
 
===Software===
 
===Software===
Ligne 32 : Ligne 30 :
 
*'''Apache'''
 
*'''Apache'''
  
:An Apache Web server, version 2.2 or 2.4 is required. It must be installed prior to installing ONYX Server. The paths to the Apache binaries and configuration file is asked upon installation.
+
:Apache Web server 2.4 is required. It must be installed prior to installing ONYX Server. The paths to the Apache binaries and configuration file are asked upon installation.
 
:Example: <code>#yum install httpd</code>
 
:Example: <code>#yum install httpd</code>
  
:''Caution: if you are using Apache 2.4, you will need to edit its configuration settings after installing Mapping. The changes required are explained below after the Installation section.''
+
:''Caution: if you are using Apache 2.4 (recommended), you will need to edit its configuration settings after installing Mapping. The changes required are explained below after the Installation section.''
 +
 
 +
 
 +
*'''Dependencies '''
 +
 
 +
::openssl :
 +
::: <code>yum install openssl</code>
 +
::: <code>yum install compat-openssl10</code>
 +
 
 +
::libcrypto : <code>yum install libcrypto.so.10</code>
 +
 
 +
::xerces :
 +
:::RHEL or Centos 7 : <code>rpm --install xerces-c-3.1.1-8.el7_2.x86_64.rpm</code>
 +
:::RHEL or Centos 8 : <code>rpm --install xerces-c-3.2.1.el8.x86_x64.tar.gz</code>
 +
 
 +
::xalan :
 +
:::RHEL or Centos 7 : <code>rpm --install xalan-c-1.11.0-4.el7.x86_64.rpm</code>
 +
:::RHEL or Centos 8 : <code>rpm --install xalan-c-1.11.el8.x86_x64.tar.gz</code>
  
  
Ligne 52 : Ligne 67 :
 
*'''32-bit Libraries'''
 
*'''32-bit Libraries'''
  
:ONYX Server 9.0 is built in 32 bits, 32 bits (i686) packages must be installed beforehand for the librairies C (libc) and STDC++ (libstdc++) on operating systems in 64 bits.
+
:As '''ONYX Server 9''' is compiled in 32 bits, 32 bits (i686) compatibility packages must be installed beforehand for the libraries C (libc) and STDC++ (libstdc++) on 64 bits operating systems. From '''ONYX Server 10''' the compatibility packages are no longer required as it is compiled in 64 bits.  
:Example:
+
 
 +
:Example :
  
  #yum install libstdc++.i686
+
yum install libstdc++.i686
  #yum install glibc.i686
+
yum install glibc.i686
  
 +
As a result, from V10, '''no additional package is required anymore'''.
  
 
*'''Network Ports'''
 
*'''Network Ports'''
Ligne 66 : Ligne 83 :
 
:*8002 (Web port)
 
:*8002 (Web port)
 
:*515 (LPD listening port)
 
:*515 (LPD listening port)
:*2000 (internal port of the Mapping Spooler)
+
:*6789 (port used for "Connect")
 +
:*2000 (internal port of the Mapping Spooler - does not need to be open)
  
 
:Check that these ports are opened and available (that they are not already used) for ONYX Server, if not, choose other ports for the installation. The LPD/LPR server of the system must then be stopped to clear the port 515.
 
:Check that these ports are opened and available (that they are not already used) for ONYX Server, if not, choose other ports for the installation. The LPD/LPR server of the system must then be stopped to clear the port 515.
Ligne 73 : Ligne 91 :
 
*'''Security'''
 
*'''Security'''
  
:ONYX Server must be installed with either a profile which has admin rights on the server, or the root account. If necessary, two new user accounts will be automatically created upon installation: mapadmin (default name, this can be changed) and nobodyma.
+
:ONYX Server must be installed with either a profile which has admin rights on the server, or the root account. If necessary, two new user accounts will be automatically created upon installation: mapadmin (default name, this can be changed) and nobodyma (used for actions started from the web UI).
 +
:The root user's umask must be set to 002x (default).
  
 
==Installation Process==
 
==Installation Process==
Ligne 143 : Ligne 162 :
 
  default: COMPANY
 
  default: COMPANY
 
  MAPPING
 
  MAPPING
 +
 
  Enter IP address of the server
 
  Enter IP address of the server
 
  default: localhost.localdomain
 
  default: localhost.localdomain
 
  127.0.0.1
 
  127.0.0.1
 
+
Note: Localhost(127.0.0.1) is a recommended value that makes it easier to duplicate the environment later on if necessary, including on a new server.  
 
 
Note: Localhost(127.0.0.1) is a recommended value so that duplicating the environment afterwards is easier, even on a new server.  
 
  
 
  Enter port to be used for web server
 
  Enter port to be used for web server
Ligne 180 : Ligne 198 :
 
  Enter path to M-PROCESSING SERVER root directory
 
  Enter path to M-PROCESSING SERVER root directory
 
  default: /apps/mapping
 
  default: /apps/mapping
 +
Note: The script then builds all default installation paths from the root directory in order to save all ONYX Server files in a single directory. However, each path can be changed according to the target architecture.
  
Note: The script then builds all the default installation paths from the root folder to place all the ONYX Server files in the same folder. Each path can however be changed depending on the targeted architecture.
+
Enter path to M-PROCESSING SERVER configuration directory
 
 
Enter path to M-PROCESSING SERVER configuration directory
 
 
  default: /apps/mapping/conf
 
  default: /apps/mapping/conf
 
   
 
   
Ligne 216 : Ligne 233 :
 
  default: /apps/mapping/spool/logs
 
  default: /apps/mapping/spool/logs
  
Remarque : après cette série de question, un résumé est proposé afin de vérifier qu'il n'y a pas eu d'erreur. Si une modification est à faire, il est possible de réponse "no" afin de relancer toutes les questions. Dans ce cas, pour gagner tu temps, les réponses proposées par défaut correspondent aux réponses qui ont été apportées précédemment.  
+
Note: after the series of questions above, a recap is displayed so you can check that there are no errors. If you need to make a change, you may answer "no" in order to ask all the questions again. In this case, to save time the default answers are the answers specified earlier.  
 
   
 
   
 
  Do you want to validate following parameters:
 
  Do you want to validate following parameters:
Ligne 247 : Ligne 264 :
 
  M-PROCESSING SERVER logs directory: /apps/mapping/spool/logs
 
  M-PROCESSING SERVER logs directory: /apps/mapping/spool/logs
 
  yes | no ?
 
  yes | no ?
 
  
 
==Editing Apache server 2.4 configuration settings==
 
==Editing Apache server 2.4 configuration settings==
Ligne 255 : Ligne 271 :
 
The Mapping section for httpd.conf is identified by means of <code>#BEGIN_MAPPING_...</code>
 
The Mapping section for httpd.conf is identified by means of <code>#BEGIN_MAPPING_...</code>
  
Pour cela :  
+
To do so:  
  
:- Supprimer le noeud <code><Directory /xxxxx/xxxxx/MapHTTPServer/cgi-bin></code> du fichier httpd.conf (c'est-à-dire le noeud xml complet avec tout son contenu et la balise de fin <code></Directory></code>)
+
:- Delete node <code><Directory /xxxxx/xxxxx/MapHTTPServer/cgi-bin></code> in httpd.conf (i.e the full xml node including all its contents and end tag <code></Directory></code>)
:- Supprimer les instructions suivantes du fichier httpd.conf
+
:- Delete the following instructions from the httpd.conf file
 
:: <code>AllowOverride all</code>  
 
:: <code>AllowOverride all</code>  
 
:: <code>Order allow,deny</code>
 
:: <code>Order allow,deny</code>
 
:: <code>Allow from all</code>  
 
:: <code>Allow from all</code>  
:- Ajouter les instruction présentes dans le fichier <code>MapHTTPServer/.htaccess</code> directement dans le httpd.conf, dans le noeud <code><Directory /xxxx/xxxx/MapHTTPServer></code>
+
:- Add the instructions found in <code>MapHTTPServer/.htaccess</code> directly in httpd.conf, under node <code><Directory /xxxx/xxxx/MapHTTPServer></code>
:- Supprimer (ou renommer) le fichier <code>MapHTTPServer/.htaccess</code>
+
:- Delete (or rename) the file <code>MapHTTPServer/.htaccess</code>
  
La section Mapping du fichier httpd.conf devrait alors ressembler à ceci :
+
The Mapping server of httpd.conf should then look like something like this:
 
  #BEGIN_MAPPING_v9.0.0_2019/06/12_16_10_57
 
  #BEGIN_MAPPING_v9.0.0_2019/06/12_16_10_57
 
  #DO NOT MODIFY THIS BLOCK. It will be automatically updated.
 
  #DO NOT MODIFY THIS BLOCK. It will be automatically updated.
Ligne 286 : Ligne 302 :
 
  #END_MAPPING_v9.0.0_2019/06/12_16_10_57
 
  #END_MAPPING_v9.0.0_2019/06/12_16_10_57
  
<div class="mw-translate-fuzzy">
+
===Optional configuration blocks (examples)===
[[Fichier:OX S InstallLinux4.png|centré|sans_cadre|720x720px]]
+
 
</div>
+
These are optional configurations that can be added to the <VirtualHost> node described above.
 +
 
 +
====Listing the content of the server's configuration folders====
 +
You can browse Mapping's configuration files from the UI with a limited access to the '''mapadmin''' user. To use it, simply add "/dir" after the url.<br>
 +
Example: <code>http://mymappingserver:8002/dir</code>
  
Une fois l'installation terminée, il est nécessaire de redémarrer le service Apache avant de pouvoir accéder à l'interface Web d'administration d'ONYX Server.
+
        Alias /dir "/apps/mapping/conf"
 +
        <Directory "/apps/mapping/conf">
 +
              AuthType Basic
 +
              AuthName Identification
 +
              AuthBasicProvider file
 +
              AuthUserFile "/apps/mapping/MapHTTPServer/.htpasswd"
 +
              Require user mapadmin
 +
              Options +Indexes
 +
        </Directory>
 +
 
 +
====Protecting the access to the Workflow====
 +
This configuration limits the access to the Workflow interface to the '''mapadmin''' user only.
 +
        <Directory "/apps/mapping/MapHTTPServer/JS_Common">
 +
              AuthType Basic
 +
              AuthName Identification
 +
              AuthBasicProvider file
 +
              AuthUserFile "/apps/mapping/MapHTTPServer/.htpasswd"
 +
              Require user mapadmin
 +
        </Directory>
 +
 
 +
==Starting the Interface==
 +
 
 +
After installing, the Apache server needs to be restarted before you can launch ONYX Server's Web GUI.
  
 
  httpd -k restart
 
  httpd -k restart
:ou (selon la distribution)
+
:or (according to distribution)
 
  apachectl restart
 
  apachectl restart
  
1. Ouvrir une page de navigateur internet
+
1. Open your web browser
 +
 
 +
2. Enter the following URL:
 +
 
 +
*From the local server: <code><big><nowiki>http://127.0.0.1:8002</nowiki></big></code>
 +
*From a workstation in the network: <code><big>http://<ip.du.serveur>:8002</big></code>
  
2. Saisir dans l'URL :
 
  
*Depuis le serveur en local : <code><big><nowiki>http://127.0.0.1:8002</nowiki></big></code>
+
''<code>8002</code> being the port configured by default during the installation''<br />
*Depuis un poste en réseau : <code><big>http://<ip.du.serveur>:8002</big></code>
 
  
 +
If the credentials have not been changed during installation, the default values are:
  
''<code>8002</code> étant le port configuré par défaut lors de l'installation''<br />
+
* Username: mapadmin
 +
* Password: mapadmin
  
<div class="mw-translate-fuzzy">
+
===Known Errors===
[[Fichier:OX S InstallLinux5.png|centré|sans_cadre|1103x1103px]]
 
</div>
 
  
'''Si le port 8002 est déjà occupé'''
+
'''If port 8002 is busy'''
  
Dans ce cas, Apache ne peut pas redémarrer. Il suffit alors de modifier le port utilisé pour accéder à l'interface Web du serveur Mapping :
+
In this case, Apache cannot restart. Change the port used to access the web interface of the Mapping server:
  
#Ouvrir le fichier de configuration d'Apache, '''httpd.conf''' (il se trouve dans le dossier '''conf''', référencé lors de l'installation)
+
#Open the Apache configuration file, '''httpd.conf''' (it is located in the '''conf''' file, specified during installation)
#Chercher le bloc de configuration situé entre '''#BEGIN_MAPPING''' et '''#END_MAPPING''' (généralement en bas du fichier)
+
#Search for the configuration block between '''#BEGIN_MAPPING''' and '''#END_MAPPING''' (it is usually at the end of the file)
#Modifier le port d'écoute 8002 dans les lignes suivantes :
+
#Change the listening 8002 port in the following lines:
  
 
::*Listen 8002
 
::*Listen 8002
Ligne 322 : Ligne 367 :
 
::*<VirtualHost *:8002><br />
 
::*<VirtualHost *:8002><br />
  
Puis, redémarrer le service Apache.
+
Then, restart the Apache server.
 
   
 
   
'''Message d'erreur à l'ouverture de la page'''
+
'''An error message is displayed when opening the page'''  
 
 
Il est possible qu'une erreur se produise à l'ouverture de la page Mapping si la version 2.4 d'Apache a été installée, mais que la modification relative à sa configuration n'a pas été faite (voir ci-dessus) ou que Apache n'a pas été redémarré.
 
 
 
  
 +
An error may occur when opening Mapping if Apache 2.4's configuration settings have not been edited as required (see above) or if Apache has not been restarted.
  
 
==Managing the ONYX Server environment==
 
==Managing the ONYX Server environment==
Ligne 336 : Ligne 379 :
 
===ONYX Environments===
 
===ONYX Environments===
  
<div class="mw-translate-fuzzy">
+
On the server, the different ONYX Server environments are saved in a file: mappingtab, which is by default in the /etc folder. If this file is in another folder, it needs to be specified in the following command lines (mappingenv command), using the argument -pathconf:XXX.
On the server, the different ONYX Server environments are saved in a file: mappingtab, which is by default in the /etc folder. If this file is in another folder, it needs to be specified in the following command lines, using the argument -pathconf:XXX.
 
 
An environment consists of a name, a connection port (Web port via the Apache server) and a configuration file (path of the mapping.conf file). Each parameter must be unique. On the same server, two ONYX Server environments must not have the same name, neither should they have the same Web port, nor configuration file.
 
An environment consists of a name, a connection port (Web port via the Apache server) and a configuration file (path of the mapping.conf file). Each parameter must be unique. On the same server, two ONYX Server environments must not have the same name, neither should they have the same Web port, nor configuration file.
</div>
 
  
 
===Selecting a work environment===
 
===Selecting a work environment===
Ligne 345 : Ligne 386 :
 
Before using the ONYX Server,load the environment in which jobs must be carried out, even if there is only ONYX Server installed on the server.
 
Before using the ONYX Server,load the environment in which jobs must be carried out, even if there is only ONYX Server installed on the server.
  
<div class="mw-translate-fuzzy">
+
<u>Console mode (telnet or ssh session)</u>
<u>Console mode (telnet session)</u>
 
</div>
 
  
 
An ONYX Server environment is loaded with the binary mappingenv. During the installation, you will be asked if you want to copy this binary on the system. Copying this binary is essential to save and use the environment installed.
 
An ONYX Server environment is loaded with the binary mappingenv. During the installation, you will be asked if you want to copy this binary on the system. Copying this binary is essential to save and use the environment installed.
Ligne 353 : Ligne 392 :
 
To load an ONYX Server environment in command lines, once you are connected in Telnet on the server, run command <code>mappingenv</code> then, enter the name or the number of the desired environment.
 
To load an ONYX Server environment in command lines, once you are connected in Telnet on the server, run command <code>mappingenv</code> then, enter the name or the number of the desired environment.
  
<div class="mw-translate-fuzzy">
+
In the example below, environment number 3 is selected, it is called MAPPING_V8.1.0, and the http port is 8810.
[[Fichier:OX S telnetcnx.png|centré|sans_cadre|973x973px]]
 
</div>
 
  
 
  [root@localhost ~]# mappingenv
 
  [root@localhost ~]# mappingenv
Ligne 388 : Ligne 425 :
  
 
==Activating the software==
 
==Activating the software==
Once the software is installed, it must be activated by entering software keys. These licenses are dependent on system information of the server. To obtain these licenses:
+
Once the software is installed, it must be activated by entering software keys. The license keys are dependent on the server's system information. To obtain the license keys:
  
 
*Retrieve the server id
 
*Retrieve the server id
Ligne 410 : Ligne 447 :
  
  
<div class="mw-translate-fuzzy">
+
[root@localhost ~]# mappingenv
[[Fichier:OX S activation.png|centré|sans_cadre|620x620px]]
+
Which environment do you want to load :
</div>
+
1 : MAPPING_PROD /apps/mapping/conf/mapping.conf 8002
 +
Enter the environment name or number :1
 +
 +
[root@localhost ~]# /apps/mapping/bin/mapkey
 +
Your serial number : Linux
 +
Your type of processor : x86_x86_
 +
 +
Enter the product number : 1
 +
Enter the key : FD89BB-CFB9B1-BFF584-ABBD42-EBF54A-FE54FF-FD88DE-59
 +
[root@localhost ~]# /apps/mapping/bin/mapkey
 +
Your serial number : Linux
 +
Your type of processor : x86_x86_
 +
 +
Enter the product number : 2
 +
Enter the key : ABBD42-CFB9B1-BFF584-EBF54A-FD89BB-FD88DE-CFB9B1-35
 +
[root@localhost ~]# /apps/mapping/bin/mapkey
 +
Your serial number : Linux
 +
Your type of processor : x86_x86_
 +
 +
Enter the product number : 3
 +
Enter the key : FD88DE-FD89BB-CFB9B1-BFF584-ABBD42-EBF54A-FE54FF-89
 +
[root@localhost ~]# /apps/mapping/bin/mapkey
 +
Your serial number : Linux
 +
Your type of processor : x86_x86_
 +
 +
Enter the product number : 4
 +
Enter the key : FE54FF-FD89BB-CFB9B1-BFF584-ABBD42-EBF54A-FD88DE-24
 +
[root@localhost ~]# /apps/mapping/bin/mapkey
 +
Your serial number : Linux
 +
Your type of processor : x86_x86_
 +
 +
Enter the product number : 5
 +
Enter the key : CFB9B1-FD89BB-BFF584-ABBD42-EBF54A-FE54FF-FD88DE-45

Version actuelle datée du 5 octobre 2023 à 09:59

Autres langues :
English • ‎français

Introduction

This guide explains how to install ONYX Server on Linux. It is also generally recommended to update other software modules in the suite to prevent any version conflict.

Requirements

Setup

ONYX Server Linux is compatible with the following operating system versions:

  • Red Hat Enterprise Linux 7 (RHEL7) or Red Hat Enterprise Linux 8 (RHEL8)
  • CentOS 7 or CentOS 8


Required disk space on Linux:

  • 1 Gb minimum to unzip the installation package
  • 5 Gb minimum for installation


More disk space may be required according to how long you wish to keep the jobs. The amount of required disk space should be based on the maximum number and size of jobs in the system at any one time. Also, please note that storing large-size images can require large amounts of free disk space as well.


System:

  • 2 VCPU
  • Processor type x86-64
  • RAM: 2 Go minimum, 4 Go recommended. Possibly more depending on the complexity of the architecture

Software

  • Apache
Apache Web server 2.4 is required. It must be installed prior to installing ONYX Server. The paths to the Apache binaries and configuration file are asked upon installation.
Example: #yum install httpd
Caution: if you are using Apache 2.4 (recommended), you will need to edit its configuration settings after installing Mapping. The changes required are explained below after the Installation section.


  • Dependencies
openssl :
yum install openssl
yum install compat-openssl10
libcrypto : yum install libcrypto.so.10
xerces :
RHEL or Centos 7 : rpm --install xerces-c-3.1.1-8.el7_2.x86_64.rpm
RHEL or Centos 8 : rpm --install xerces-c-3.2.1.el8.x86_x64.tar.gz
xalan :
RHEL or Centos 7 : rpm --install xalan-c-1.11.0-4.el7.x86_64.rpm
RHEL or Centos 8 : rpm --install xalan-c-1.11.el8.x86_x64.tar.gz


  • Deactivating SELinux
To start up Apache on DocumentRoots located in Mapping folders, SELinux must be deactivated
Example: #setenforce 0
For it to be deactivated at every start-up, edit the file /etc/selinux/config as follows: SELINUX=disabled


  • sFTP
Access to the server in sFTP (ssh) is required.


  • 32-bit Libraries
As ONYX Server 9 is compiled in 32 bits, 32 bits (i686) compatibility packages must be installed beforehand for the libraries C (libc) and STDC++ (libstdc++) on 64 bits operating systems. From ONYX Server 10 the compatibility packages are no longer required as it is compiled in 64 bits.
Example :

yum install libstdc++.i686 yum install glibc.i686

As a result, from V10, no additional package is required anymore.

  • Network Ports
ONYX Server uses 3 ports for internal (between processes) and external communication (admin Web interface).
The following ports are used by default:
  • 8002 (Web port)
  • 515 (LPD listening port)
  • 6789 (port used for "Connect")
  • 2000 (internal port of the Mapping Spooler - does not need to be open)
Check that these ports are opened and available (that they are not already used) for ONYX Server, if not, choose other ports for the installation. The LPD/LPR server of the system must then be stopped to clear the port 515.


  • Security
ONYX Server must be installed with either a profile which has admin rights on the server, or the root account. If necessary, two new user accounts will be automatically created upon installation: mapadmin (default name, this can be changed) and nobodyma (used for actions started from the web UI).
The root user's umask must be set to 002x (default).

Installation Process

Installation packages can be downloaded from the Mapping technical server at: https://server.mappingsuite.com. They are called "[OS]_[version].tar.gz".

To install ONYX Server, the archive must be FTPed in binary mode to the Linux server in a folder of your choice (e.g. /tmp). The archive file must then be unzipped using the root profile:

tar –xvf Setup_Onyx_Server_Linux_v9.0.0b.37402.tar.gz
cd v9.0.0b.37402
tar –xvf mapping_install_Linux_v9.0.0b.37402.tar.gz

A "mapping_install" folder is created in which the installation script must be run (always using the root profile):

cd mapping_install 
./mapinst.sh

The script guides the user during the installation process by asking for all the necessary information to configure the installation of the ONYX Server.

[root@localhost v9.0.0b.37748]# cd mapping_install/
[root@localhost mapping_install]# ./mapinst.sh 
Control user permissions
Checking installation files folder
Do you want to update mappingenv binary
yes | no ?
yes
Enter installation path of mappingenv binary
default: /bin

Do you confirm this path: /bin
yes | no ?
yes

Detecting existing version
Do you want to search for mapping.conf files?
Warning: this operation can be long…
yes | no?
no
 
Do you want to:
1: install a new version?
2: exit?
> 1 | 2 ?
1
Do you confirm the installation of a new version?
yes | no ?
yes 

Installing a new M-Processing Server version...
Initializing System variables default values...
Initializing installation variables... 

Enter matching values
If values are correct, validate with "enter" 

Enter system type: AIX, Linux
default: LINUX 

Enter system version: AIX: 7.1, Linux: Linux
default: Linux

Enter owner name
default: mapadmin

Enter group name
default: mapadmin

Enter language to be used
default: english

Enter your company name
default: COMPANY
MAPPING

Enter IP address of the server
default: localhost.localdomain
127.0.0.1

Note: Localhost(127.0.0.1) is a recommended value that makes it easier to duplicate the environment later on if necessary, including on a new server.

Enter port to be used for web server
default: 8002
 
Enter connection address to the spooler
default: localhost.localdomain
127.0.0.1
Enter connection port to the spooler
default: 2000

Enter port to be used for LPD server
default: 515

Enter environment name
default: MAPPING-v9-0-0b-37748
MAPPING_PROD
Enter path and name of the apache configuration file
default: /etc/httpd/conf/httpd.conf

Enter path and exact name of the executable htpasswd
default: /usr/bin/htpasswd

Enter path and exact name of the executable apachectl
default: /usr/sbin/apachectl 

Do you want to connect Infoprint Manager to M-PROCESSING SERVER?
default: no
yes | no ?
no
Enter path to M-PROCESSING SERVER root directory
default: /apps/mapping

Note: The script then builds all default installation paths from the root directory in order to save all ONYX Server files in a single directory. However, each path can be changed according to the target architecture.

Enter path to M-PROCESSING SERVER configuration directory

default: /apps/mapping/conf

Enter path to M-PROCESSING SERVER executables directory
default: /apps/mapping/bin

Enter path to M-PROCESSING SERVER web server directory
default: /apps/mapping/MapHTTPServer

Enter path to M-PROCESSING SERVER import directory
default: /apps/mapping/import

Enter path to M-PROCESSING SERVER temporary files directory
default: /apps/mapping/temp

Enter path to M-PROCESSING SERVER production files directory
default: /apps/mapping/map400

Enter path to M-PROCESSING SERVER spooler files directory
default: /apps/mapping/spool

Enter path to M-PROCESSING SERVER spooler log files directory
default: /apps/mapping/spool/logs

Enter path to stderr.txt and stdout.txt directory
default: /apps/mapping/temp

Enter path to M-PROCESSING SERVER archive files directory
default: /apps/mapping/mapout
yes
Enter path to web server log files directory
default: /apps/mapping/spool/logs

Note: after the series of questions above, a recap is displayed so you can check that there are no errors. If you need to make a change, you may answer "no" in order to ask all the questions again. In this case, to save time the default answers are the answers specified earlier.

Do you want to validate following parameters:
M-PROCESSING SERVER User: mapadmin
M-PROCESSING SERVER Group: mapadmin
Use of Infoprint: no
OS System: LINUX
OS Version: Linux
Apache configuration file: /etc/httpd/conf/httpd.conf
Executable htpasswd: /usr/bin/htpasswd
M-PROCESSING SERVER web log files: /apps/mapping/spool/logs
Language: english
Company name: MAPPING
Server IP address: 127.0.0.1
WEB server connection port: 8009
LPD well-known port: 515
Connection address to the spooler: 127.0.0.1
Connection port to the spooler: 2009
M-PROCESSING SERVER environment name: MAPPING_PROD
M-PROCESSING SERVER root directory: /apps/mapping
M-PROCESSING SERVER configuration directory: /apps/mapping/conf9
M-PROCESSING SERVER binaries directory: /apps/mapping/bin
M-PROCESSING SERVER web configuration directory: /apps/mapping/MapHTTPServer
M-PROCESSING SERVER import directory: /apps/mapping/import
M-PROCESSING SERVER temporary directory: /apps/mapping/temp
M-PROCESSING SERVER archive directory: yes
M-PROCESSING SERVER production directory: /apps/mapping/map400
M-PROCESSING SERVER spooler directory: /apps/mapping/spool
M-PROCESSING SERVER std files directory: /apps/mapping/temp
M-PROCESSING SERVER logs directory: /apps/mapping/spool/logs
yes | no ?

Editing Apache server 2.4 configuration settings

If Apache server 2.4 is installed, the file httpd.conf needs to be edited in the section added automatically when installing Mapping.

The Mapping section for httpd.conf is identified by means of #BEGIN_MAPPING_...

To do so:

- Delete node <Directory /xxxxx/xxxxx/MapHTTPServer/cgi-bin> in httpd.conf (i.e the full xml node including all its contents and end tag </Directory>)
- Delete the following instructions from the httpd.conf file
AllowOverride all
Order allow,deny
Allow from all
- Add the instructions found in MapHTTPServer/.htaccess directly in httpd.conf, under node <Directory /xxxx/xxxx/MapHTTPServer>
- Delete (or rename) the file MapHTTPServer/.htaccess

The Mapping server of httpd.conf should then look like something like this:

#BEGIN_MAPPING_v9.0.0_2019/06/12_16_10_57
#DO NOT MODIFY THIS BLOCK. It will be automatically updated.
Listen 8002
NameVirtualHost *:8002
<VirtualHost *:8002>
       ServerName MAPPING-v9-0-0
       DocumentRoot "/apps/mapping/MapHTTPServer"
       ScriptAlias "/cgi-bin/ /apps/mapping/MapHTTPServer/cgi-bin/"
       <Directory "/apps/mapping/MapHTTPServer">
               AuthType Basic
               AuthName "Identification"
               AuthBasicProvider file
               AuthUserFile "/apps/mapping/MapHTTPServer/.htpasswd"
               AuthGroupFile "/apps/mapping/MapHTTPServer/.htgroup"
               Require valid-user
               Options None
       </Directory>
</VirtualHost>
#END_MAPPING_v9.0.0_2019/06/12_16_10_57

Optional configuration blocks (examples)

These are optional configurations that can be added to the <VirtualHost> node described above.

Listing the content of the server's configuration folders

You can browse Mapping's configuration files from the UI with a limited access to the mapadmin user. To use it, simply add "/dir" after the url.
Example: http://mymappingserver:8002/dir

       Alias /dir "/apps/mapping/conf"
       <Directory "/apps/mapping/conf">
              AuthType Basic
              AuthName Identification
              AuthBasicProvider file
              AuthUserFile "/apps/mapping/MapHTTPServer/.htpasswd"
              Require user mapadmin
              Options +Indexes
       </Directory>

Protecting the access to the Workflow

This configuration limits the access to the Workflow interface to the mapadmin user only.

       <Directory "/apps/mapping/MapHTTPServer/JS_Common">
              AuthType Basic
              AuthName Identification
              AuthBasicProvider file
              AuthUserFile "/apps/mapping/MapHTTPServer/.htpasswd"
              Require user mapadmin
       </Directory>

Starting the Interface

After installing, the Apache server needs to be restarted before you can launch ONYX Server's Web GUI.

httpd -k restart
or (according to distribution)
apachectl restart

1. Open your web browser

2. Enter the following URL:

  • From the local server: http://127.0.0.1:8002
  • From a workstation in the network: http://<ip.du.serveur>:8002


8002 being the port configured by default during the installation

If the credentials have not been changed during installation, the default values are:

  • Username: mapadmin
  • Password: mapadmin

Known Errors

If port 8002 is busy

In this case, Apache cannot restart. Change the port used to access the web interface of the Mapping server:

  1. Open the Apache configuration file, httpd.conf (it is located in the conf file, specified during installation)
  2. Search for the configuration block between #BEGIN_MAPPING and #END_MAPPING (it is usually at the end of the file)
  3. Change the listening 8002 port in the following lines:
  • Listen 8002
  • NameVirtualHost *:8002
  • <VirtualHost *:8002>

Then, restart the Apache server.

An error message is displayed when opening the page

An error may occur when opening Mapping if Apache 2.4's configuration settings have not been edited as required (see above) or if Apache has not been restarted.

Managing the ONYX Server environment

With Linux systems, several ONYX Server environments can be installed and used on the same server. Each environment is then entirely independent from the others and has its own configuration, processings, engine version, activation licenses. Managing these different ONYX Server environments can be done using the program mappingenv.

ONYX Environments

On the server, the different ONYX Server environments are saved in a file: mappingtab, which is by default in the /etc folder. If this file is in another folder, it needs to be specified in the following command lines (mappingenv command), using the argument -pathconf:XXX. An environment consists of a name, a connection port (Web port via the Apache server) and a configuration file (path of the mapping.conf file). Each parameter must be unique. On the same server, two ONYX Server environments must not have the same name, neither should they have the same Web port, nor configuration file.

Selecting a work environment

Before using the ONYX Server,load the environment in which jobs must be carried out, even if there is only ONYX Server installed on the server.

Console mode (telnet or ssh session)

An ONYX Server environment is loaded with the binary mappingenv. During the installation, you will be asked if you want to copy this binary on the system. Copying this binary is essential to save and use the environment installed. The mappingenv program must be accessible to all users running ONYX Server in console mode. To load an ONYX Server environment in command lines, once you are connected in Telnet on the server, run command mappingenv then, enter the name or the number of the desired environment.

In the example below, environment number 3 is selected, it is called MAPPING_V8.1.0, and the http port is 8810.

[root@localhost ~]# mappingenv
Which environment do you want to load :
1 : MAPPING_V7.1	/apps/mapping/conf/mapping.conf	8002
2 : MAPPING_V7.2	/apps/mapping_V72/conf/mapping.conf	8720
3 : MAPPING_V8.1.0	/apps/mapping_81/conf/mapping.conf	8810
4 : MAPPING_V805	/apps/mapping805/conf/mapping.conf	8805
5 : mapping_900	/apps/mapping900/conf/mapping.conf	8900
Enter the environment name or number :3

In graphic mode (Web interface)

Connection to the Web interface of ONYX Server on a particular port is enough to identify and load the work environment.

Example: the address http://192.168.217.17:8002 loads the MAPPING environment

In the scripts

To write any script, loading the work environment is also necessary before running the ONYX Server commands. The binary mappingenv (interactive mode) cannot be used in such cases. You need to export the environment variable MAPPING_PATH, which identifies the configuration file of the ONYX Server in which the execution is done.

Example of a script to start the ONYX Server Spooler of the MAPPING environment:

#!/usr/bin/ksh
################################################################
# Mapping Suite Spooler Start                                  #
################################################################
export MAPPING_PATH=/apps/mapping/conf/mapping.conf

TIMESTAMP=$(date +"%Y/%m/%d-%H.%M.%S")
echo "Mapping is starting at $TIMESTAMP"
/apps/mapping/bin/map_daemon start

Activating the software

Once the software is installed, it must be activated by entering software keys. The license keys are dependent on the server's system information. To obtain the license keys:

Server ID

bash-4.2$ mappingenv
Which environment do you want to load:

1 : MAPPING  /apps/mapping/conf/mapping.conf    8002    Active
2 : MAPPING_test  /apps/mapping_test/conf/mapping.conf    8003    Active
Enter the name or number of the environment: 1

bash-4.5$ /apps/mapping/bin/mapkey
Serial number of your device: FFD8F1E6
Your processor type: x86_x86_

Entering license keys

Once Mapping provided you with the licenses, repeat the previous steps to enter each key you obtained. Each key Mapping provided is identified by a product number (from 1 to 5) and a key value (44 hexadecimal characters, separated or not by formatting dashes).


[root@localhost ~]# mappingenv
Which environment do you want to load :
1 : MAPPING_PROD	/apps/mapping/conf/mapping.conf	8002
Enter the environment name or number :1

[root@localhost ~]# /apps/mapping/bin/mapkey 
Your serial number : Linux
Your type of processor : x86_x86_

Enter the product number : 1
Enter the key : FD89BB-CFB9B1-BFF584-ABBD42-EBF54A-FE54FF-FD88DE-59
[root@localhost ~]# /apps/mapping/bin/mapkey 
Your serial number : Linux
Your type of processor : x86_x86_

Enter the product number : 2
Enter the key : ABBD42-CFB9B1-BFF584-EBF54A-FD89BB-FD88DE-CFB9B1-35
[root@localhost ~]# /apps/mapping/bin/mapkey 
Your serial number : Linux
Your type of processor : x86_x86_

Enter the product number : 3
Enter the key : FD88DE-FD89BB-CFB9B1-BFF584-ABBD42-EBF54A-FE54FF-89
[root@localhost ~]# /apps/mapping/bin/mapkey 
Your serial number : Linux
Your type of processor : x86_x86_

Enter the product number : 4
Enter the key : FE54FF-FD89BB-CFB9B1-BFF584-ABBD42-EBF54A-FD88DE-24
[root@localhost ~]# /apps/mapping/bin/mapkey 
Your serial number : Linux
Your type of processor : x86_x86_

Enter the product number : 5
Enter the key : CFB9B1-FD89BB-BFF584-ABBD42-EBF54A-FE54FF-FD88DE-45