Version Windows portable

De SOS Paris
Aller à : navigation, rechercher
Portable.png
Version portable
Version 1.0
Une version portable Windows permet d'utiliser Ari'i à partir d'une clé USB sur n'importe quelle plateforme Windows.

Cet article reprend les étapes de construction de la clé. Pour son utilisation, il faut lire Arii portable.

Tout d'abord, quelques règles pour une version portable qui puissent être mise à jour simplement:

  • Ne télécharger que des versions 32bits
  • Télécharger les versions stables (et non les dernières)
  • Utiliser des répertoires génériques (pas de numéro de version)
  • Ne pas décompresser un composant dans un autre

La structure de la suivante:

ARII
  Tools
    7z
    git
    graphviz
  xampp
  jobscheduler
    arii
    agent1
    agent2
  symfony
  tmp
  dump

Outils

7zip

Url http://www.7-zip.org/
Fichier 7z1604.exe

Git

Git est un gestionnaire de code source qui va nous permettre de télécharger les clones.

Téléchargement

Url https://git-scm.com/download/win
Fichier PortableGit-2.14.1-32-bit.7z.exe

Installation

L'installation de la version portable est une archive autoextractible. Il suffit de l'exécuter pour extraire les fichiers dans \ARII\git

Test

Le test consiste à lancer l'outil en mode console:

\ARII\git\git-cmd.exe

Curl

Url http://www.paehl.com/open_source/downloads/curl-release-static-ipv6-sspi-spnego-winssl.7z
Fichier curl-7.55.1-win32-mingw.7z

JRE

http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html

http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jre-8u144-windows-i586.tar.gz

WAMP

XAMPP

Attention! On évitera le batch setup qui fait des chercher/remplacer pas toujours très juste (exemple \arii\arii ne sera pas correctement traité). On privilégie l'usage des variables globales.

Téléchargement

Url https://www.apachefriends.org
Fichier xampp-portable-win32-5.6.31-0-VC11.7z

Le principe est de télécharger la version portable pour éviter toute interaction avec le système.

Apache 2.4.27, MariaDB 10.1.26, PHP 7.1.9, phpMyAdmin 4.7.4, OpenSSL 1.0.2, XAMPP Control Panel 3.2.2, Webalizer 2.23-04, Mercury Mail Transport System 4.63, FileZilla FTP Server 0.9.41, Tomcat 7.0.56 (with mod_proxy_ajp as connector), Strawberry Perl 7.0.56 Portable

Installation

  • On décompresse l'archive dans \ARII
  • On exécute le setup
\ARII\setup_xampp.bat
  • On exécute xampp-control.exe
  • On démarre Apache et MySQL en cliquant que les boutons start

Le log devrait ressembler à ce qui suit:

15:24:50  [main] 	Initializing Control Panel
15:24:50  [main] 	Windows Version: Windows 7 Enterprise SP1 64-bit
15:24:50  [main] 	XAMPP Version: 7.1.9
15:24:50  [main] 	Control Panel Version: 3.2.2  [ Compiled: Nov 12th 2015 ]
15:24:50  [main] 	You are not running with administrator rights! This will work for
15:24:50  [main] 	most application stuff but whenever you do something with services
15:24:50  [main] 	there will be a security dialogue or things will break! So think 
15:24:50  [main] 	about running this application with administrator rights!
15:24:50  [main] 	XAMPP Installation Directory: "c:\arii\xampp\"
15:24:50  [main] 	Checking for prerequisites
15:24:50  [main] 	All prerequisites found
15:24:50  [main] 	Initializing Modules
15:24:50  [main] 	The FileZilla module is disabled
15:24:50  [main] 	The Mercury module is disabled
15:24:50  [main] 	Starting Check-Timer
15:24:50  [main] 	Control Panel Ready
15:24:55  [Apache] 	Attempting to start Apache app...
15:24:55  [Apache] 	Status change detected: running
15:25:03  [mysql] 	Attempting to start MySQL app...
15:25:03  [mysql] 	Status change detected: running

Test

Le test consiste à se connecter sur l'url http://localhost

PHP

Modifier les .bat pour qu'il reprenne les variables, on a généralement le code suivant:

if "%PHPBIN%" == "" set PHPBIN=\arii\xampp\php\.\php.exe

Il suffit donc d'initialiser les variables pour que celles-ci soient prises en compte.

Configuration

Ouvrir php.ini et ajouter:

memory_limit = 1G

On décommente les extensions suivantes:

Composer

Composer est l'outil de package pour PHP.

Téléchargement

Url https://getcomposer.org/download/
Fichier Composer-Setup.exe

Installation

php composer-setup.php
All settings correct for using Composer
Downloading...

Composer (version 1.5.2) successfully installed to: \ARII\composer.phar
Use it: php composer.phar


  • Exécutez le binaire
  • Cochez Developer mode
  • Installez dans \ARII\composer
  • Donnez le chemin de PHP: \ARII\xampp\php\php.exe
curl --insecure https://getcomposer.org/composer.phar --output composer.phar

MySQL

r:\arii\ARII>mysql -u root -p -e "CREATE DATABASE scheduler CHARACTER SET utf8 COLLATE utf8_general_ci;" Enter password: ERROR 1007 (HY000) at line 1: Can't create database 'scheduler'; database exists

r:\arii\ARII>mysql -u root -p -e "CREATE DATABASE arii CHARACTER SET utf8 COLLATE utf8_general_ci;" Enter password:

Perl

Perl est un langage de script multi-plateforme qui permet donc de partager le code entre Windows et Unix mais aussi d'être intégré directement dans JobScheduler. SOSParis l'utilise généralement dans ses scripts afin de fournir les mêmes développement pour l'ensemble des systèmes d'exploitation.

Arii utilise des scripts Perl à travers les scripts PHP pour les fonctions qui peuvent être directement appelé par le système comme la génération des graphs à partir de fichiers XML.

La version incluse dans XAMPP est une version portable strawberry 5.16 qui convient tout à fait.

Correction

Il manquait la dll libexpat-1_.dll pour utiliser ppm mais cette dll était présente dans les composants précédemment installés.

copy \ARII\tools\git\mingw32\bin \ARII\xampp\perl\bin

LibXML

Le PPM nous permet l'installation de cette bibliothèque:

\ARII>ppm install XML-LibXML
Installing package 'XML-LibXML'... 
Bytes transferred: 1323259
Use of chdir() or chdir(undef) as chdir() is deprecated at C:/ARII/xampp/perl/vendor/lib/PPM.pm line 393.
Files found in blib\arch: installing files in blib\lib into architecture dependent library tree
Installing \xampp\perl\site\lib\auto\XML\LibXML\iconv.dll
Installing \xampp\perl\site\lib\auto\XML\LibXML\LibXML.dll
Installing \xampp\perl\site\lib\auto\XML\LibXML\LibXML.exp
Installing \xampp\perl\site\lib\auto\XML\LibXML\LibXML.lib
Installing \xampp\perl\site\lib\auto\XML\LibXML\libxml2.dll
Installing \xampp\perl\site\lib\auto\XML\LibXML\zlib1.dll
Installing \xampp\perl\site\lib\XML\LibXML.pm
Installing \xampp\perl\site\lib\XML\LibXML.pod
Installing \xampp\perl\site\lib\XML\LibXML\Attr.pod
Installing \xampp\perl\site\lib\XML\LibXML\AttributeHash.pm
Installing \xampp\perl\site\lib\XML\LibXML\Boolean.pm
Installing \xampp\perl\site\lib\XML\LibXML\CDATASection.pod
Installing \xampp\perl\site\lib\XML\LibXML\Comment.pod
Installing \xampp\perl\site\lib\XML\LibXML\Common.pm
Installing \xampp\perl\site\lib\XML\LibXML\Common.pod
Installing \xampp\perl\site\lib\XML\LibXML\Devel.pm
Installing \xampp\perl\site\lib\XML\LibXML\Document.pod
Installing \xampp\perl\site\lib\XML\LibXML\DocumentFragment.pod
Installing \xampp\perl\site\lib\XML\LibXML\DOM.pod
Installing \xampp\perl\site\lib\XML\LibXML\Dtd.pod
Installing \xampp\perl\site\lib\XML\LibXML\Element.pod
Installing \xampp\perl\site\lib\XML\LibXML\ErrNo.pm
Installing \xampp\perl\site\lib\XML\LibXML\ErrNo.pod
Installing \xampp\perl\site\lib\XML\LibXML\Error.pm
Installing \xampp\perl\site\lib\XML\LibXML\Error.pod
Installing \xampp\perl\site\lib\XML\LibXML\InputCallback.pod
Installing \xampp\perl\site\lib\XML\LibXML\Literal.pm
Installing \xampp\perl\site\lib\XML\LibXML\Namespace.pod
Installing \xampp\perl\site\lib\XML\LibXML\Node.pod
Installing \xampp\perl\site\lib\XML\LibXML\NodeList.pm
Installing \xampp\perl\site\lib\XML\LibXML\Number.pm
Installing \xampp\perl\site\lib\XML\LibXML\Parser.pod
Installing \xampp\perl\site\lib\XML\LibXML\Pattern.pod
Installing \xampp\perl\site\lib\XML\LibXML\PI.pod
Installing \xampp\perl\site\lib\XML\LibXML\Reader.pm
Installing \xampp\perl\site\lib\XML\LibXML\Reader.pod
Installing \xampp\perl\site\lib\XML\LibXML\RegExp.pod
Installing \xampp\perl\site\lib\XML\LibXML\RelaxNG.pod
Installing \xampp\perl\site\lib\XML\LibXML\SAX.pm
Installing \xampp\perl\site\lib\XML\LibXML\SAX.pod
Installing \xampp\perl\site\lib\XML\LibXML\Schema.pod
Installing \xampp\perl\site\lib\XML\LibXML\Text.pod
Installing \xampp\perl\site\lib\XML\LibXML\XPathContext.pm
Installing \xampp\perl\site\lib\XML\LibXML\XPathContext.pod
Installing \xampp\perl\site\lib\XML\LibXML\XPathExpression.pod
Installing \xampp\perl\site\lib\XML\LibXML\SAX\Builder.pm
Installing \xampp\perl\site\lib\XML\LibXML\SAX\Builder.pod
Installing \xampp\perl\site\lib\XML\LibXML\SAX\Generator.pm
Installing \xampp\perl\site\lib\XML\LibXML\SAX\Parser.pm

Attention! L'installation part dans \xampp, il faut copier les fichiers dans %XAMPP%\perl\site En cours d'investigation.

Open Source JobScheduler

https://sourceforge.net/projects/jobscheduler/files/JobScheduler.1.10/JobScheduler.1.10.6/jobscheduler_windows-x64.1.10.6.zip/download

Setup

  • exécuter setup.cmd

Tables

\ARII\jobscheduler\arii\install>scheduler_install_tables.cmd
... the database management system is MySQL
... installing tables in SQL database which not exist
  1) H:\ARII\\jobscheduler\arii\config\sos_settings.ini
  2) db\MySQL
  3) (?<!_insert|_rename|_alter|update.{0,50}|_procedure|_sequence|_trigger|\.trigger)\.sql$
  4) 0
  5) -execute-batch
18:39:34.404---------- mercredi septembre 27 18:39:34 2017
18:39:34.404    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process directory H:\ARII\jobscheduler\arii\db\MySQL, fileSpec = (?<!_insert|_rename|_alter|update.
{0,50}|_procedure|_sequence|_trigger|\.trigger)\.sql$
18:39:34.420    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process file H:\ARII\jobscheduler\arii\db\MySQL\scheduler_mon_notifications.sql
18:39:34.420    [info]   sos.connection.SOSConnection.executeStatements(2251): executeBatch = true (supportsBatchUpdates = true, useExecuteBatch = true, batchSize = 100)
18:39:36.545    [info]   sos.connection.SOSConnectionFileProcessor.process(81): file successfully processed H:\ARII\jobscheduler\arii\db\MySQL\scheduler_mon_notifications.sql
18:39:36.545    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process file H:\ARII\jobscheduler\arii\db\MySQL\inventory.sql
18:39:36.576    [info]   sos.connection.SOSConnection.executeStatements(2251): executeBatch = true (supportsBatchUpdates = true, useExecuteBatch = true, batchSize = 100)
18:39:40.858    [info]   sos.connection.SOSConnectionFileProcessor.process(81): file successfully processed H:\ARII\jobscheduler\arii\db\MySQL\inventory.sql
18:39:40.858    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process file H:\ARII\jobscheduler\arii\db\MySQL\scheduler_mon_results.sql
18:39:40.874    [info]   sos.connection.SOSConnection.executeStatements(2251): executeBatch = true (supportsBatchUpdates = true, useExecuteBatch = true, batchSize = 100)
18:39:41.358    [info]   sos.connection.SOSConnectionFileProcessor.process(81): file successfully processed H:\ARII\jobscheduler\arii\db\MySQL\scheduler_mon_results.sql
18:39:41.358    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process file H:\ARII\jobscheduler\arii\db\MySQL\scheduler_mon_sysnotifications.sql
18:39:41.374    [info]   sos.connection.SOSConnection.executeStatements(2251): executeBatch = true (supportsBatchUpdates = true, useExecuteBatch = true, batchSize = 100)
18:39:42.077    [info]   sos.connection.SOSConnectionFileProcessor.process(81): file successfully processed H:\ARII\jobscheduler\arii\db\MySQL\scheduler_mon_sysnotifications.sql
18:39:42.077    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process file H:\ARII\jobscheduler\arii\db\MySQL\scheduler_events.sql
18:39:42.077    [info]   sos.connection.SOSConnection.executeStatements(2251): executeBatch = true (supportsBatchUpdates = true, useExecuteBatch = true, batchSize = 100)
18:39:42.843    [info]   sos.connection.SOSConnectionFileProcessor.process(81): file successfully processed H:\ARII\jobscheduler\arii\db\MySQL\scheduler_events.sql
18:39:42.843    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process file H:\ARII\jobscheduler\arii\db\MySQL\scheduler_loganalyser.sql
18:39:42.858    [info]   sos.connection.SOSConnection.executeStatements(2251): executeBatch = true (supportsBatchUpdates = true, useExecuteBatch = true, batchSize = 100)
18:39:43.577    [info]   sos.connection.SOSConnectionFileProcessor.process(81): file successfully processed H:\ARII\jobscheduler\arii\db\MySQL\scheduler_loganalyser.sql
18:39:43.577    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process file H:\ARII\jobscheduler\arii\db\MySQL\scheduler_mon_checks.sql
18:39:43.593    [info]   sos.connection.SOSConnection.executeStatements(2251): executeBatch = true (supportsBatchUpdates = true, useExecuteBatch = true, batchSize = 100)
18:39:44.296    [info]   sos.connection.SOSConnectionFileProcessor.process(81): file successfully processed H:\ARII\jobscheduler\arii\db\MySQL\scheduler_mon_checks.sql
18:39:44.296    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process file H:\ARII\jobscheduler\arii\db\MySQL\sosdailyschedule.sql
18:39:44.311    [info]   sos.connection.SOSConnection.executeStatements(2251): executeBatch = true (supportsBatchUpdates = true, useExecuteBatch = true, batchSize = 100)
18:39:45.905    [info]   sos.connection.SOSConnectionFileProcessor.process(81): file successfully processed H:\ARII\jobscheduler\arii\db\MySQL\sosdailyschedule.sql
18:39:45.905    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process file H:\ARII\jobscheduler\arii\db\MySQL\scheduler.sql
18:39:45.921    [info]   sos.connection.SOSConnection.executeStatements(2251): executeBatch = true (supportsBatchUpdates = true, useExecuteBatch = true, batchSize = 100)
18:39:50.746    [info]   sos.connection.SOSConnectionFileProcessor.process(81): file successfully processed H:\ARII\jobscheduler\arii\db\MySQL\scheduler.sql
18:39:50.746    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process file H:\ARII\jobscheduler\arii\db\MySQL\report.sql
18:39:50.746    [info]   sos.connection.SOSConnection.executeStatements(2251): executeBatch = true (supportsBatchUpdates = true, useExecuteBatch = true, batchSize = 100)
18:39:52.450    [info]   sos.connection.SOSConnectionFileProcessor.process(81): file successfully processed H:\ARII\jobscheduler\arii\db\MySQL\report.sql
18:39:52.450    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process file H:\ARII\jobscheduler\arii\db\MySQL\jadehistory.sql
18:39:52.465    [info]   sos.connection.SOSConnection.executeStatements(2251): executeBatch = true (supportsBatchUpdates = true, useExecuteBatch = true, batchSize = 100)
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81): file successfully processed H:\ARII\jobscheduler\arii\db\MySQL\jadehistory.sql
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81): directory proccessed (total = 11, success = 11, error = 0) H:\ARII\jobscheduler\arii\db\MySQL
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81):   success:
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81):     1) H:\ARII\jobscheduler\arii\db\MySQL\scheduler_mon_notifications.sql
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81):     2) H:\ARII\jobscheduler\arii\db\MySQL\inventory.sql
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81):     3) H:\ARII\jobscheduler\arii\db\MySQL\scheduler_mon_results.sql
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81):     4) H:\ARII\jobscheduler\arii\db\MySQL\scheduler_mon_sysnotifications.sql
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81):     5) H:\ARII\jobscheduler\arii\db\MySQL\scheduler_events.sql
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81):     6) H:\ARII\jobscheduler\arii\db\MySQL\scheduler_loganalyser.sql
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81):     7) H:\ARII\jobscheduler\arii\db\MySQL\scheduler_mon_checks.sql
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81):     8) H:\ARII\jobscheduler\arii\db\MySQL\sosdailyschedule.sql
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81):     9) H:\ARII\jobscheduler\arii\db\MySQL\scheduler.sql
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81):     10) H:\ARII\jobscheduler\arii\db\MySQL\report.sql
18:39:53.945    [info]   sos.connection.SOSConnectionFileProcessor.process(81):     11) H:\ARII\jobscheduler\arii\db\MySQL\jadehistory.sql
... insert initial rows into tables in SQL database
  1) H:\ARII\\jobscheduler\arii\config\sos_settings.ini
  2) db\MySQL
  3) (?<!settings)_insert\.sql$
  4) 0
  5) -execute-batch
18:40:04.364---------- mercredi septembre 27 18:40:04 2017
18:40:04.364    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process directory H:\ARII\jobscheduler\arii\db\MySQL, fileSpec = (?<!settings)_insert\.sql$
18:40:04.364    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process file H:\ARII\jobscheduler\arii\db\MySQL\scheduler_instances_insert.sql
18:40:04.364    [info]   sos.connection.SOSConnection.executeStatements(2251): executeBatch = true (supportsBatchUpdates = true, useExecuteBatch = true, batchSize = 100)
18:40:04.786    [info]   sos.connection.SOSConnectionFileProcessor.process(81): file successfully processed H:\ARII\jobscheduler\arii\db\MySQL\scheduler_instances_insert.sql
18:40:04.786    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process file H:\ARII\jobscheduler\arii\db\MySQL\report_map_insert.sql
18:40:04.786    [info]   sos.connection.SOSConnection.executeStatements(2251): executeBatch = true (supportsBatchUpdates = true, useExecuteBatch = true, batchSize = 100)
18:40:04.942    [info]   sos.connection.SOSConnectionFileProcessor.process(81): file successfully processed H:\ARII\jobscheduler\arii\db\MySQL\report_map_insert.sql
18:40:04.942    [info]   sos.connection.SOSConnectionFileProcessor.process(81): directory proccessed (total = 2, success = 2, error = 0) H:\ARII\jobscheduler\arii\db\MySQL
18:40:04.942    [info]   sos.connection.SOSConnectionFileProcessor.process(81):   success:
18:40:04.942    [info]   sos.connection.SOSConnectionFileProcessor.process(81):     1) H:\ARII\jobscheduler\arii\db\MySQL\scheduler_instances_insert.sql
18:40:04.942    [info]   sos.connection.SOSConnectionFileProcessor.process(81):     2) H:\ARII\jobscheduler\arii\db\MySQL\report_map_insert.sql
  1) H:\ARII\\jobscheduler\arii\config\sos_settings.ini
  2) db\MySQL
  3) settings_insert\.sql$
  4) 0
  5) -execute-batch
18:40:05.344---------- mercredi septembre 27 18:40:05 2017
18:40:05.344    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process directory H:\ARII\jobscheduler\arii\db\MySQL, fileSpec = settings_insert\.sql$
18:40:05.359    [info]   sos.connection.SOSConnectionFileProcessor.process(81): directory proccessed (total = 0, success = 0, error = 0) H:\ARII\jobscheduler\arii\db\MySQL
  1) H:\ARII\\jobscheduler\arii\config\sos_settings.ini
  2) db\MySQL
  3) (_|\.)trigger\.sql$
  4) 0
  5) -execute-batch
18:40:06.155---------- mercredi septembre 27 18:40:06 2017
18:40:06.155    [info]   sos.connection.SOSConnectionFileProcessor.process(81): process directory H:\ARII\jobscheduler\arii\db\MySQL, fileSpec = (_|\.)trigger\.sql$
18:40:06.155    [info]   sos.connection.SOSConnectionFileProcessor.process(81): directory proccessed (total = 0, success = 0, error = 0) H:\ARII\jobscheduler\arii\db\MySQL
... done

Symfony Arii Edition

Installation

L'installation de l'édition Arii consiste à cloner les sources sur github puis à faire appel à composer pour compléter l'installation.

A partir de la console git, faire:

cd \
git clone https://github.com/AriiPortal/symfony-arii-edition.git symfony

A noter qu'il est aussi possible de télécharger l'archive à cette adresse https://github.com/AriiPortal/symfony-arii-edition/archive/master.zip et la décompresser dans \Arii\symfony


php composer.phar install


Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 51 installs, 0 updates, 0 removals
  - Installing doctrine/lexer (v1.0.1): Loading from cache
  - Installing doctrine/inflector (v1.1.0): Loading from cache
  - Installing doctrine/collections (v1.4.0): Loading from cache
  - Installing doctrine/cache (v1.6.2): Loading from cache
  - Installing doctrine/annotations (v1.4.0): Loading from cache
  - Installing doctrine/common (v2.7.3): Loading from cache
  - Installing doctrine/dbal (v2.5.13): Loading from cache
  - Installing paragonie/random_compat (v2.0.10): Loading from cache
  - Installing ramsey/uuid (3.7.1): Loading from cache
  - Installing ramsey/uuid-doctrine (1.1.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.5.0): Loading from cache
  - Installing twig/twig (v1.34.4): Loading from cache
  - Installing symfony/security-acl (v2.8.0): Loading from cache
  - Installing symfony/symfony (v2.8.0): Loading from cache
  - Installing symfony/polyfill-util (v1.5.0): Loading from cache
  - Installing symfony/polyfill-php70 (v1.5.0): Loading from cache
  - Installing symfony/polyfill-php56 (v1.5.0): Loading from cache
  - Installing ircmaxell/password-compat (v1.0.4): Loading from cache
  - Installing symfony/polyfill-php55 (v1.5.0): Loading from cache
  - Installing symfony/polyfill-php54 (v1.5.0): Loading from cache
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/polyfill-intl-icu (v1.5.0): Loading from cache
  - Installing symfony/inflector (v3.3.9): Loading from cache
  - Installing symfony/property-access (v3.3.9): Loading from cache
  - Installing doctrine/orm (v2.4.8): Loading from cache
  - Installing doctrine/doctrine-cache-bundle (1.3.0): Loading from cache
  - Installing jdorn/sql-formatter (v1.2.17): Loading from cache
  - Installing doctrine/doctrine-bundle (1.6.8): Loading from cache
  - Installing kriswallsmith/assetic (v1.4.0): Loading from cache
  - Installing symfony/assetic-bundle (v2.8.2): Loading from cache
  - Installing swiftmailer/swiftmailer (v5.4.8): Loading from cache
  - Installing symfony/swiftmailer-bundle (v2.6.3): Loading from cache
  - Installing monolog/monolog (1.23.0): Loading from cache
  - Installing symfony/monolog-bundle (v2.12.1): Loading from cache
  - Installing sensiolabs/security-checker (v3.0.7): Loading from cache
  - Installing sensio/distribution-bundle (v4.0.39): Loading from cache
  - Installing sensio/framework-extra-bundle (v3.0.27): Loading from cache
  - Installing incenteev/composer-parameter-handler (v2.1.2): Loading from cache 
  - Installing friendsofsymfony/user-bundle (dev-master 315f837): Cloning 315f837576 from cache
  - Installing dhtmlx/connector-php (2.2.0): Loading from cache
  - Installing aura/payload-interface (3.1.0): Loading from cache
  - Installing aura/payload (3.0.1): Loading from cache
  - Installing bfolliot/date (1.1.2): Loading from cache
  - Installing bfolliot/filesystem (1.0.2): Loading from cache
  - Installing symfony/serializer (v3.1.9): Loading from cache
  - Installing gbprod/uuid-normalizer (v1.0.1): Loading from cache
  - Installing mtdowling/cron-expression (v1.2.0): Loading from cache
  - Installing mikehaertl/php-shellcommand (1.2.5): Loading from cache
  - Installing mikehaertl/php-tmpfile (1.1.1): Loading from cache
  - Installing mikehaertl/phpwkhtmltopdf (2.2.2): Loading from cache
  - Installing sensio/generator-bundle (v2.5.3): Loading from cache
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
ramsey/uuid suggests installing ircmaxell/random-lib (Provides RandomLib for use with the RandomLibAdapter)
ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator)
ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator)
ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).)
ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid)
symfony/polyfill-intl-icu suggests installing ext-intl (For best performance)
symfony/property-access suggests installing psr/cache-implementation (To cache access methods.)
kriswallsmith/assetic suggests installing leafo/lessphp (Assetic provides the integration with the lessphp LESS compiler)
kriswallsmith/assetic suggests installing leafo/scssphp (Assetic provides the integration with the scssphp SCSS compiler)
kriswallsmith/assetic suggests installing ptachoire/cssembed (Assetic provides the integration with phpcssembed to embed data uris)
kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provides the integration with the SCSS compass plugin)
kriswallsmith/assetic suggests installing patchwork/jsqueeze (Assetic provides the integration with the JSqueeze JavaScript compressor)
symfony/assetic-bundle suggests installing kriswallsmith/spork (to be able to dump assets in parallel)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
sensio/framework-extra-bundle suggests installing symfony/psr-http-message-bridge (To use the PSR-7 converters)
symfony/serializer suggests installing psr/cache-implementation (For using the metadata cache.)
Writing lock file
Generating autoload files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Creating the "app/config/parameters.yml" file
Some parameters are missing. Please provide them.
database_driver (mysqli):
database_host (127.0.0.1):
database_port (3306):
database_name (arii):
database_user (root):
database_password (arii):
mailer_transport (smtp):
mailer_host (127.0.0.1):
mailer_user (null):
mailer_password (null):
locale (fr):
secret (ThisTokenIsNotSoSecretChangeIt):
ldap_host (null):
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

 // Clearing the cache for the dev environment with debug true

 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.

> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets

 Trying to install assets as relative symbolic links.

 --------- -------------------------- ------------------
            Bundle                     Method / Error
 --------- -------------------------- ------------------
  WARNING   FrameworkBundle            absolute symlink
  WARNING   AriiCoreBundle             absolute symlink
  WARNING   AriiGraphvizBundle         absolute symlink
  WARNING   AriiATSBundle              absolute symlink
  WARNING   AriiReportBundle           absolute symlink
  WARNING   SensioDistributionBundle   absolute symlink
 --------- -------------------------- ------------------

 [OK] All assets were successfully installed.

> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::removeSymfonyStandardFiles
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget

Non support des liens

 \ARII\symfony>php app/console assets:install
 Installing assets as hard copies.

 ---- -------------------------- ----------------
       Bundle                     Method / Error
 ---- -------------------------- ----------------
  OK   FrameworkBundle            copy
  OK   AriiCoreBundle             copy
  OK   AriiGraphvizBundle         copy
  OK   AriiATSBundle              copy
  OK   AriiReportBundle           copy
  OK   SensioDistributionBundle   copy
 ---- -------------------------- ----------------

 ! [NOTE] Some assets were installed via copy. If you make changes to these assets you have to run this command again.

 [OK] All assets were successfully installed.

Configuration

Création du schéma

\ARII\symfony>php app/console doctrine:schema:create
ATTENTION: This operation should not be executed in a production environment.

Creating database schema...
Database schema created successfully!

Création d'un utilisateur

\ARII\symfony>php app/console arii:user:create
Please choose a username:admin
Please choose an email:admin@localhost
Please choose a password:
Please choose a firstname:admin
Please choose a lastname:admin
Created user admin
\ARII\symfony>php app/console arii:user:create operator operator@localhost operator operator operator
Created user operator

Promotion en admin

La promotion de l'utilisateur admin précédemment créé va permettre d'accéder au module d'administration.

\ARII\symfony>php app/console fos:user:promote admin ROLE_ADMIN
Role "ROLE_ADMIN" has been added to user "admin". This change will not apply until the user logs out and back in again.