meta data for this page
This is an old revision of the document!
Installation and configuration of a Vigilens web server
General
This is the type of a Web server allowing to execute Vigilens requests from a Web browser or to call these requests from a third party application (http request from MS Excel, task menu in ORACLE JD Edwards EnterpriseOne, …).
In addition to the Web component, this server will have all the characteristics of the installation of a Vigilens workstation and can therefore serve as an application server for the Vigilens suite.
Execution of installation
Language selection
Select an installation directory
Selection of the installation folderSame as for the installation of the single workstation., and same remarks.
Select components to be installed
You can choose to install (or not) the various Windows applications making the Vigilens Tools Suite. The server can thus (possibly) serve as an application server.
In order to be able to parameterize the data sources, it is recommended to install Vigilens Designer and AdminTool on the Web server.
PHP server installaiton
The Vigilens Web component requires a PHP server. This screen allows you to choose between :
Installing a new EasyPHP server
: Installation of EasyPHP 5.3.2 (supplied with Vigilens)Installing in an existing Apache server
: Vigilens will use a WAMP architecture previously installed on the server. Version must match EasyPHP 5.3.2 or higher)Update an existing installation of Vigilens WEB
: This option allows you to reinstall Vigilens without reinstalling the PHP server.
The installation of Vigilens may require the modification of the php.ini and httpd.conf files. If this is the case, a backup copy is then created under the name: php.ini.vigi_backup and httpd.conf.vigi_backup.
Installing a new PHP server
Selecting the EasyPHP installation folder
Installing in an existing Apache server
To use an existing WAMP architecture, you must specify the folders containing the web pages, the php.ini file and the httpd.conf file.
On some platforms several of these folders may be identical.
Update an existing installation of Vigilens WEB
Select the folder containing the web pages.
Usually this value will be initialized based on what was entered during previous installations.
Chosen options summary
Setup
General
A Vigilens Web server is a Vigilens station like any other Vigilens station, setup section of Installation et paramétrage d’un poste Vigilens also applies to this case (especially with regard to data sources).
The next sections deal with the additional steps required for a Vigilens Web server.
Setting up the PHP server
PHP uses port 80 by default. If this port is used by another application (such as instant messaging software), Apache will display an error indicating that the port is in use. It may be necessary to change Apache's configuration to use a different port.
In order to do so:
- Right click on the EasyPHP icon available in the notification area of the taskbar.
- Choose “Configuration” then “Apache”, which opens the file “httpd.conf”.
- Look for the line beginning with
Listen
.- By default, it must be the line
Listen 127.0.0.1:80
. - Change the line to replace
80
by the desired port number. - example
Listen 127.0.0.1:8080
.
- Find the line beginning with
ServerName
.- By default, this must be the
ServerName localhost:80
line. - Modify the line to replace
80
with the desired port number - example
ServerName localhost:8080
- Save the file
- Right double-click on the EasyPHP icon available in the notification area of the taskbar.
- Click on “Apache” to restart this server.
- Apache will then use the new port, in the example, port 8080.
It may also be necessary to configure the firewall to allow access to the Apache server.
Vigilens Web setup
The installation creates a subgroup of “Web” programs (in the Vigilens program group ). It contains two shortcuts :
- Restart Service: this application allows you to restart the “Vigilens Web Service” service if the service has been stopped or if configuration modifications have to be taken into account.
- WebConfig: this application allows you to customize the Vigilens Web interface and to modify some configuration options.
Setting up the web component
Launch WebConfig. The first time you use it, you must enter the directory defined during the admin installation.
This application is accessible to the “Admin” user and to users who have been given access rights in the AdminTool application (see rights restrictions for groups and users).
The application has 6 tabs :
Global
This tab allows you to change the default language, the initial size of the columns as well as the list of possible choices regarding the number of records displayed on each page. Changes made to these values take effect after the web page is refreshed.
Graphic Customisation
This tab allows you to modify the images displayed at the top and bottom of the page. Changes made to these values take effect after the web page is refreshed.
Server
The information contained in this tab is related to the operation of the “Vigilens Web Service” service. It is strongly recommended not to modify these values, except in specific cases.
Advanced Parameters
This tab allows you to modify the following data:
- Calendar - First day of the week: This is the display mode of the calendar wizard.
- Tracing: Possibility to trace in a file (chosen by the user) the information transiting between the Web pages and the Vigilens engine.
lorsque le traçage est activé, les temps de réponses peuvent être dégradés, c’est pourquoi il est recommandé de n’utiliser cette option que ponctuellement, en cas de problème.
- Web Vigilens Service: By default the service is executed with the local system account of the machine. In some cases, this account cannot be used. It is then possible to modify the account to be used in this tab. The modification of the account is only taken into account after restarting the service with the shortcut “ Restart Service”.
Limits
- Timeout :
- The first value is the number of minutes between the closing of all Web windows corresponding to a Vigilens user and the deletion of the connection corresponding to this user.
- The second value is the number of minutes since the last activity on a request.
it is recommended that this duration should be longer than the execution time of the requests
- Data volume: This is the number of rows at which the query stops and returns an error message. This setting is used to secure the risk of memory saturation of the browser or server in the event of a large volume of data.
- The first value concerns the output to a grid screen display.
- the second one is for file outputs.
HTTP access
This tab allows you to add domains that can be used in Vigilens Monitor.
Information Importantes
Prérequis du navigateur
Le serveur web doit être défini comme un site de confiance afin d’autoriser l’exécution sans message d’avertissement systématique. Il est également nécessaire de demander l’autorisation de téléchargement des fichiers afin de gérer les restitutions directement sous forme de fichier.
Exemple pour le navigateur MS Internet Explorer :
Exécution de Vigilens Web
Le mode habituel d’exécution de l’application se fait via le lancement d’une liste de requêtes en utilisant le lien suivant : http://serveur/vigilens où serveur correspond au nom ou à l’adresse IP du serveur Web).
Si le port a été redéfini au niveau de PHP, il doit être spécifié dans le lien, http://serveur:8080/vigilens, par exemple.
Lors de l’exécution d’une requête, le résultat : grille ou fichier (PDF, Excel…) dépend de ce qui a été spécifié dans Restitution en mode interactif lors de la création de la requête.
Un lancement unitaire est également possible via le lien suivant : http://serveur/vigilens/table.php?vglCtrlName=nomRequete. Voir la page dédiée à la syntaxe des URL
Compte servant à se connecter au service Vigilens Web
Vigilens Web accède au moteur Vigilens via DCOM. C’est le service Vigilens Web qui active le composant DCOM (processus VigilensSrv.exe). Le composant DCOM est donc exécuté avec l’utilisateur servant à se connecter au service Vigilens Web. Par défaut, il s’agit du compte système local de la machine.
Or le composant DCOM doit avoir accès au répertoire partagé de Vigilens. Ceci ne pose pas de problème dans le cas où le répertoire partagé est situé sur le serveur Web.
Dans le cas contraire, le composant DCOM, s’il est exécuté avec le compte système local de la machine, n’aura pas accès au répertoire partagé (situé sur un autre serveur). Il est alors nécessaire de modifier le compte utilisé pour se connecter au service Vigilens Web (Onglet « Paramètres avancés » de l’application WebConfig).
Après avoir modifié le compte, il est nécessaire d’utiliser le raccourci « Restart Service » pour redémarrer le service Vigilens Web.
Il se peut que le service ne redémarre pas si le compte utilisateur ne possède pas les droits d’activation de service. Dans ce cas, le plus simple est de modifier directement le service lui-même. Pour ce faire, il faut :
- Ouvrir l’interface de gestion des services (raccourci « Services » dans le groupe « Outils d’administration » du panneau de configuration)
- Effectuer un clic droit sur le service nommé « Service Vigilens Web » et sélectionner le menu « Propriétés ».
- Dans l’onglet « Connexion » de la boite de propriétés, renseigner le compte utilisateur et son mot de passe puis valider la boite de propriétés. Le compte utilisateur se verra alors attribuer les droits manquant.
- Il est alors possible d’utiliser le raccourci « Restart Service » pour redémarrer le service.
Modifier les droits d’accès au composant DCOM
Pour pouvoir activer le composant DCOM, il faut que l’utilisateur servant à se connecter au service Vigilens Web ait l’autorisation d’exécution et d’activation pour ce composant. Dans le cas où il s’agit du compte système local de la machine, ceci ne pose pas de problème. Dans le cas où il s’agit d’un autre compte, il faut s’assurer qu’il dispose bien de l’autorisation d’activer le composant DCOM. Pour
ce faire, il faut :
- Ouvrir l’interface de gestion de services des composants (raccourci « Services de composants » dans le groupe « Outils d’administration » du panneau de configuration)
- Développer l’arborescence : Services de composants \ Ordinateurs \ Poste de travail \ Configuration DCOM
- Sous cette arborescence effectuer un clic droit sur le composant nommé « Evidens.DataCtrlDoc » et sélectionner le menu « Propriétés ».
- Dans l’onglet « Sécurité », dans le pavé « Autorisations d’exécution et d’activation », sélectionner « Personnaliser » et cliquer sur le bouton [Modifier]
- Dans la boite de dialogue qui s’affiche, sélectionner le compte servant à se connecter au service Vigilens Web, et cocher les 4 cases à cocher « Autoriser », puis valider toutes les boites de dialogues.
Modification du mode de lancement de PHP
Pour pouvoir utiliser Vigilens Web, il faut que PHP soit démarré sur le serveur Web. Pour éviter d’éventuels problème en cas d’ouverture / fermeture de sessions sur le serveur Web, il peut être intéressant de modifier le mode de lancement de PHP de façon à ce que les serveurs soient lancés en tant que services.
Dans le cas d’EasyPHP, en effectuant un clic droit sur le bouton [Apache], et en sélectionnant le menu « Configuration \ EasyPHP », on accède à différentes options, notamment : Démarrer les serveurs en tant que service.
il peut être nécessaire, dans certains contextes, de configurer le pare-feu de façon à autoriser les accès au port utilisé par PHP.
Configuration de PHP
Pour les serveurs n’utilisant pas EasyPHP, il faut vérifier les points suivants :
- L’extension « mbstring » doit être installée.
- Il est nécessaire que la valeur « date.timezone » de la section [Date] du fichier « php.ini » soit définie (par exemple : [Date] date.timezone = Europe/Paris).
Mise à jour
Se reporter à la section mise à jour du poste Vigilens.