ONYX - 9.0 - Installation
ONYX Server installation on Linux
Sommaire
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
- CentOS 7
Required disk space on Linux:
- 1 Gb minimum to unzip the installation package
- 500 Mb 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-32 or x86-64
- RAM: 2 Go minimum, 4 Go recommended. Possibly more depending on the complexity of your architecture
Software
- 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.
- Example:
#yum install httpd
- 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.
- 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
- 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.
- Example:
#yum install libstdc++.i686 #yum install glibc.i686
- 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)
- 2000 (internal port of the Mapping Spooler)
- 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.
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 so that duplicating the environment afterwards is easier, even 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 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 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
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.
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
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
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:
- 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>
Then, restart the Apache server.
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é.
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, 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 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.
[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. These licenses are dependent on system information of the server. To obtain these licenses:
- Retrieve the server id
- Contact Technical Support, or log on to https://server.mappingsuite.com
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).