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

Différence entre versions

De MappingDoc
(Page créée avec « To write any script, before running the ONYX Server commands, loading the work environment is also necessary. The binary mappingenv (interactive mode) cannot be used in su... »)
 
(78 révisions intermédiaires par 2 utilisateurs 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:
  
*Red Hat Enterprise Linux 7
+
*Red Hat Enterprise Linux 7 (RHEL7) or Red Hat Enterprise Linux 8 (RHEL8)
*CentOS 7
+
*CentOS 7 or CentOS 8
  
  
 
Required disk space on Linux:
 
Required disk space on Linux:
  
*1 Go minimum to unzip the installation package
+
*1 Gb minimum to unzip the installation package
*500 Mo minimum for the installation
+
*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.''
  
  
Ligne 20 : 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 27 : Ligne 30 :
 
*'''Apache'''
 
*'''Apache'''
  
:An Apache Web server, version 2.2 or 2.4 is required. It must be installed before installing ONYX Server. Path to the binary 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 (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 43 : Ligne 65 :
  
  
*'''32bits 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:
 
  
  #yum install libstdc++.i686
+
:Example :
  #yum install glibc.i686
 
  
 +
yum install libstdc++.i686
 +
yum install glibc.i686
 +
 +
As a result, from V10, '''no additional package is required anymore'''.
  
 
*'''Network Ports'''
 
*'''Network Ports'''
  
:ONYX Server uses 3 ports for internal communications (between processes) and external ones (admin Web interface).
+
:ONYX Server uses 3 ports for internal (between processes) and external communication (admin Web interface).
 
:The following ports are used by default:
 
:The following ports are used by default:
  
 
:*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 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.
  
  
 
*'''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==
Installation packages of the software can be downloaded on the Mapping technical server, at: https://serveur.mappingsuite.com. They are called "[OS]_[version].tar.gz".  
+
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 software, the archive file must be in FTP in binary mode on the Linux server in a folder you chose (example: /tmp). The archive file must then be unzipped with the root profile:  
+
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:  
  gzip -d Setup_Onyx_Server_Linux_v9.0.0b.37402.tar.gz
+
  tar –xvf Setup_Onyx_Server_Linux_v9.0.0b.37402.tar.gz
tar –xvf Setup_Onyx_Server_Linux_v9.0.0b.37402.tar
 
 
  cd v9.0.0b.37402
 
  cd v9.0.0b.37402
  gzip -d mapping_install_Linux_v9.0.0b.37402.tar.gz
+
  tar –xvf mapping_install_Linux_v9.0.0b.37402.tar.gz
tar –xvf mapping_install_Linux_v9.0.0b.37402.tar
 
  
A "mapping_install" folder, in which the installation script must be run, is created ('''always with the root profile'''):
+
A "mapping_install" folder is created in which the installation script must be run ('''always using the root profile'''):
 
  cd mapping_install  
 
  cd mapping_install  
 
  ./mapinst.sh<br />
 
  ./mapinst.sh<br />
[[File:Install linux.png|939x939px|center|alt=|sans_cadre]]
 
  
 +
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 <code>#BEGIN_MAPPING_...</code>
 +
 +
To do so:
 +
 +
:- 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>)
 +
:- Delete the following instructions from the httpd.conf file
 +
:: <code>AllowOverride all</code>
 +
:: <code>Order allow,deny</code>
 +
:: <code>Allow from all</code>
 +
:- Add the instructions found in <code>MapHTTPServer/.htaccess</code> directly in httpd.conf, under node <code><Directory /xxxx/xxxx/MapHTTPServer></code>
 +
:- Delete (or rename) the file <code>MapHTTPServer/.htaccess</code>
 +
 +
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.<br>
 +
Example: <code>http://mymappingserver:8002/dir</code>
 +
 +
        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:
  
The script guides the user during the installation process by asking for all the necessary information to configure the installation of the ONYX Server.  
+
*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>
  
[[Fichier:OX S install linux2.2.png|centré|sans_cadre|437x437px]]
 
  
Note: Localhost(127.0.0.1) is a recommended value so that duplicating the environment afterwards is easier, even on a new server.
+
''<code>8002</code> being the port configured by default during the installation''<br />
  
[[Fichier:OX S InstallLinux2.png|centré|763x763px|alt=|sans_cadre]]
+
If the credentials have not been changed during installation, the default values are:  
  
 +
* Username: mapadmin
 +
* Password: mapadmin
  
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.
+
===Known Errors===
  
[[Fichier:OX S InstallLinux3.png|centré|sans_cadre|700x700px]]
+
'''If port 8002 is busy'''
  
 +
In this case, Apache cannot restart. Change the port used to access the web interface of the Mapping server:
  
[[Fichier:OX S InstallLinux4.png|centré|sans_cadre|720x720px]]
+
#Open the Apache configuration file, '''httpd.conf''' (it is located in the '''conf''' file, specified during installation)
 +
#Search for the configuration block between '''#BEGIN_MAPPING''' and '''#END_MAPPING''' (it is usually at the end of the file)
 +
#Change the listening 8002 port in the following lines:
  
 +
::*Listen 8002
 +
::*NameVirtualHost *:8002
 +
::*<VirtualHost *:8002><br />
  
[[Fichier:OX S InstallLinux5.png|centré|sans_cadre|1103x1103px]]
+
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==
 
==Managing the ONYX Server environment==
Ligne 109 : Ligne 379 :
 
===ONYX Environments===
 
===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, 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 (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 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.
  
 
===Selecting a work environment===
 
===Selecting a work environment===
  
Before using the ONYX Server,load the environment in which works 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.
  
<u>Console mode (telnet session)</u>
+
<u>Console mode (telnet or ssh session)</u>
  
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. Coying 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.
The mappingenv program must be accessible to all users running the ONYX Server in console mode.
+
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 <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.
  
 +
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]]
+
[root@localhost ~]# mappingenv
 
+
Which environment do you want to load :
 
+
1 : MAPPING_V7.1 /apps/mapping/conf/mapping.conf 8002
<u>In console mode (SSH)</u>
+
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
[[Fichier:OX S modeSSHcnx.png|centré|sans_cadre|664x664px]]
+
5 : mapping_900 /apps/mapping900/conf/mapping.conf 8900
 
+
Enter the environment name or number :3
  
 
<u>In graphic mode (Web interface)</u>
 
<u>In graphic mode (Web interface)</u>
Ligne 140 : Ligne 411 :
 
<u>In the scripts</u>
 
<u>In the scripts</u>
  
To write any script, before running the ONYX Server commands, loading the work environment is also necessary. 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.
+
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.
  
Exemple de script pour démarrer le Spooler ONYX Server de l’environnement MAPPING :
+
Example of a script to start the ONYX Server Spooler of the MAPPING environment:
 
  #!/usr/bin/ksh
 
  #!/usr/bin/ksh
 
  ################################################################
 
  ################################################################
Ligne 153 : Ligne 424 :
 
  /apps/mapping/bin/map_daemon start
 
  /apps/mapping/bin/map_daemon start
  
==Activation logicielle==
+
==Activating the software==
Après avoir installé le logiciel, celui-ci doit être activé en saisissant des clés logicielles. Ces licences sont dépendantes d’informations systèmes du serveur. Pour obtenir les licences :
+
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:
  
*Récupérer les identifiants du serveur
+
*Retrieve the server id
*Puis contacter le Support Technique, ou se connecter sur https://serveur.mappingsuite.com.
+
*Contact Technical Support, or log on to https://server.mappingsuite.com
  
===Identifiant serveur===
+
===Server ID===
  
 
  bash-4.2$ mappingenv
 
  bash-4.2$ mappingenv
  Quel environnement voulez-vous charger :
+
  Which environment do you want to load:
 
   
 
   
 
  1 : MAPPING  /apps/mapping/conf/mapping.conf    8002    Active
 
  1 : MAPPING  /apps/mapping/conf/mapping.conf    8002    Active
 
  2 : MAPPING_test  /apps/mapping_test/conf/mapping.conf    8003    Active
 
  2 : MAPPING_test  /apps/mapping_test/conf/mapping.conf    8003    Active
  Entrez le nom ou le numéro de l'environnement : 1
+
  Enter the name or number of the environment: 1
 
   
 
   
 
  bash-4.5$ /apps/mapping/bin/mapkey
 
  bash-4.5$ /apps/mapping/bin/mapkey
  Le numéro de série de votre machine : FFD8F1E6
+
  Serial number of your device: FFD8F1E6
  Votre type de processeur : x86_x86_
+
  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).
  
[[Fichier:OX S idActivation.png|centré|sans_cadre|649x649px]]
 
  
 
+
[root@localhost ~]# mappingenv
 
+
Which environment do you want to load :
 
+
1 : MAPPING_PROD /apps/mapping/conf/mapping.conf 8002
===Saisie des licences d'activation===
+
Enter the environment name or number :1
Une fois les licences calculées par Mapping, répéter les étapes précédentes pour saisir chaque clé obtenue. Chaque clé fournie par Mapping est identifiée par un numéro de produit (de 1 à 5) et une valeur de clé (44 caractères hexadécimaux, séparés ou non par des tirets de mise en forme).
+
 
+
[root@localhost ~]# /apps/mapping/bin/mapkey
 
+
Your serial number : Linux
[[Fichier:OX S activation.png|centré|sans_cadre|620x620px]]
+
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