M-Processing Server Installation (internal)

Différence entre versions

De MappingDoc
imported>Gbarret
(Autre instructions concernant le .conf)
 
(Autre instructions concernant le .conf)
 
(6 révisions intermédiaires par 2 utilisateurs non affichées)
Ligne 3 : Ligne 3 :
 
Cette documentation décrit une installation sur Apache 2.4 (puisque Apache 2.2 est End-of-Life).
 
Cette documentation décrit une installation sur Apache 2.4 (puisque Apache 2.2 est End-of-Life).
  
{{Box
 
| BoxBGColor = #FDFDFD
 
| BoxFontColor = black
 
| BoxBorder = 1px solid #E5E5E5
 
| BoxWidth = 100%
 
| BoxMargin = 0 0 1% 0
 
}}
 
 
== Linux type Debian / Ubuntu ==
 
== Linux type Debian / Ubuntu ==
{{Bloc
+
 
| BlocWidth = 1024px
 
| BlocMargin = auto
 
| BlocPadding = 0
 
| BlocDisplay = block
 
}}
 
 
'''To install M-Processing Server on Linux 64-bit, follow the guidelines listed below :'''
 
'''To install M-Processing Server on Linux 64-bit, follow the guidelines listed below :'''
 
{| class="wikitable"
 
{| class="wikitable"
Ligne 59 : Ligne 47 :
 
| After install, enable Apache conf || <code>sudo a2enconf mapping-suite</code>
 
| After install, enable Apache conf || <code>sudo a2enconf mapping-suite</code>
 
|}
 
|}
{{BlocEnd}}
 
{{BoxEnd}}
 
  
{{Box
+
== Linux type Suse (12sp4) ==
| BoxBGColor = #FDFDFD
+
 
| BoxFontColor = black
+
Les paquets s'appellent <code>libc6-32bit</code> et <code>libstdc++6-32bit</code>
| BoxBorder = 1px solid #E5E5E5
+
 
| BoxWidth = 100%
 
| BoxMargin = 0 0 1% 0
 
}}
 
 
== Linux type RHEL / RedHat / CentOS ==
 
== Linux type RHEL / RedHat / CentOS ==
{{Bloc
+
 
| BlocWidth = 1024px
 
| BlocMargin = auto
 
| BlocPadding = 0
 
| BlocDisplay = block
 
}}
 
 
'''To install M-Processing Server on Linux 64-bit, follow the guidelines listed below :'''
 
'''To install M-Processing Server on Linux 64-bit, follow the guidelines listed below :'''
 
{| class="wikitable"
 
{| class="wikitable"
Ligne 90 : Ligne 68 :
 
{{Warning}} The file tree between a Debian like and a RHEL like if different inside etc apache dirs. <code>modules</code> directory is not placed at the same deepth.
 
{{Warning}} The file tree between a Debian like and a RHEL like if different inside etc apache dirs. <code>modules</code> directory is not placed at the same deepth.
  
{{BlocEnd}}
 
{{BoxEnd}}
 
  
  
Ligne 115 : Ligne 91 :
 
| <code>Order Deny,Allow</code><br/><code>Deny from all</code><br/><code>Allow from example.org</code> || ==> || <code>Require host example.org</code>
 
| <code>Order Deny,Allow</code><br/><code>Deny from all</code><br/><code>Allow from example.org</code> || ==> || <code>Require host example.org</code>
 
|-
 
|-
| <code>NameVirtualHost *:8004</code> || ==> || deprecated
+
| <code>NameVirtualHost *:8002</code> || ==> || deprecated
 
|}
 
|}
  
Ligne 121 : Ligne 97 :
  
 
{| class="wikitable"
 
{| class="wikitable"
 +
|-
 +
! Module à activer
 
|-
 
|-
 
| <code>LoadModule access_compat_module modules/mod_access_compat.so</code>
 
| <code>LoadModule access_compat_module modules/mod_access_compat.so</code>
Ligne 131 : Ligne 109 :
 
|-
 
|-
 
| <code>LoadModule authz_groupfile_module modules/mod_authz_groupfile.so</code>
 
| <code>LoadModule authz_groupfile_module modules/mod_authz_groupfile.so</code>
 +
|-
 +
| <code>LoadModule mpm_prefork_module modules/mod_prefork_module.so</code>
 +
|-
 +
! Module à désactiver
 +
|-
 +
| <code>#LoadModule mpm_event_module modules/mod_event_module.so</code>
 +
|-
 
|}
 
|}
  
 
[[Category:PrivateData]]
 
[[Category:PrivateData]]

Version actuelle datée du 4 août 2022 à 07:11


Cette documentation décrit une installation sur Apache 2.4 (puisque Apache 2.2 est End-of-Life).

Linux type Debian / Ubuntu

To install M-Processing Server on Linux 64-bit, follow the guidelines listed below :

Instructions Commands
Installation de dépendances pour Mapping
Add the i386 architecture, to run a 32-bit executable file on a 64-bit multi-architecture system. sudo dpkg --add-architecture i386
Update librairies. sudo apt-get update
Install the three library packages libc6:i386, libncurses5:i386, and libstdc++6:i386. sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
Installation d'Apache 2.4
Install apache2 (2.4) and apache2-utils packages. sudo apt-get install apache2 apache2-utils
Check if the mods access_compat, authz_groupfile and cgi are enabled.
Just checking their presence in mods-enabled directory.
Path: ls /etc/apache2/mod-enabled/
If not, enable them. sudo a2enmod authz_groupfile

sudo a2enmod cgi

Prepare an empty Apache conf file (Apache 2.4) sudo touch /etc/apache2/conf-available/mapping-suite.conf
Installation de Mapping
Uncompress the archive linux_lib6_autogenbuild then, the archive mapping_install_linux_autogenbuild tar -xvf mapping_install_Linux_Autogenbuild.tar.gz
Go in mapping_install directory Example: cd /home/username/desktop/mapping_install/
Run mapinst.sh sudo ./mapinst.sh
When asked use the previous settings Apache conf file: /etc/apache2/conf-available/mapping-suite.conf
Set perfect path Install path: /usr/bin/mapping/

Server datas: /srv/mapping/

Apache final configuration
After install, enable Apache conf sudo a2enconf mapping-suite

Linux type Suse (12sp4)

Les paquets s'appellent libc6-32bit et libstdc++6-32bit

Linux type RHEL / RedHat / CentOS

To install M-Processing Server on Linux 64-bit, follow the guidelines listed below :

Instructions Commands
Installation d'Apache 2.4
Install apache2 (2.4) package. sudo yum install httpd
Prepare an empty Apache conf file (Apache 2.4) sudo touch /etc/httpd/conf.modules.d/02-mapping-suite.conf (ça fonctionne aussi dans conf.d)

Warning-300px.png The file tree between a Debian like and a RHEL like if different inside etc apache dirs. modules directory is not placed at the same deepth.


Autre instructions concernant le .conf

Read : Mapping_Unix/Windows_-_modifier_le_httpd.conf_pour_Apache_2.4

Mapping apache configuration is relatively compatible with v2.4 as seen before.

But for a better compatibility, it is better to replace some commands by their 2.4 syntax.

So that the Module mod_compat is no more relevant.

Apache 2.2 Apache 2.4
Order deny,allow
Deny from all
==> Require all denied
Order allow,deny
Allow from all
==> Require all granted I have serious doubt
Order Deny,Allow
Deny from all
Allow from example.org
==> Require host example.org
NameVirtualHost *:8002 ==> deprecated

A list of some usefull modules (example taken on RHEL), not needed at first, but it is a WIP :

Module à activer
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule cgid_module modules/mod_cgid.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule mpm_prefork_module modules/mod_prefork_module.so
Module à désactiver
#LoadModule mpm_event_module modules/mod_event_module.so