28/01/2020

La gestion avec soplanning

SOPlanning (Simple Online Planning) est une application web open source de gestion de projet / planning en mode web.

N.B Je n’ai eu aucun problème à l’installer dans un conteneur lxc

Installation

On commence par installer mysql :

apt install mariadb-server

Et on cree un utilisateur :

CREATE USER 'user'@'localhost' IDENTIFIED BY 'mdp';
GRANT ALL PRIVILEGES ON * . * TO 'user'@'localhost';
FLUSH PRIVILEGES;

Télécharger le zip sur https://www.soplanning.org/en/download/ et unzip dans /var/www/html

Installer apache2 et php

apt install php apache2
a2enmod php7.3
systemctl restart apache2

Configuration

Apache

<VirtualHost *:80>
  # The ServerName directive sets the request scheme, hostname and port that
  # the server uses to identify itself. This is used when creating
  # redirection URLs. In the context of virtual hosts, the ServerName
  # specifies what hostname must appear in the request's Host: header to
  # match this virtual host. For the default virtual host (this file) this
  # value is not decisive as it is used as a last resort host regardless.
  # However, you must set it for any further virtual host explicitly.
  #ServerName www.example.com

  Servername soplanning.home
  ServerAlias soplanning.home

  #ServerAdmin webmaster@localhost
  DocumentRoot /var/www/html/soplanning/www

  # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  # error, crit, alert, emerg.
  # It is also possible to configure the loglevel for particular
  # modules, e.g.
  #LogLevel info ssl:warn
  
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined

  # For most configuration files from conf-available/, which are
  # enabled or disabled at a global level, it is possible to
  # include a line for only one particular virtual host. For example the
  # following line enables the CGI configuration for this host only
  # after it has been globally disabled with "a2disconf".
  #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Connecter vous avec votre navigateur :

Si vous tombez sur un message d’erreur php-gd, il faut l’installer et redemarer apache

apt install php-gd
systemctl restart apache2

Pour finir entrez vos identifiants mysql. Et c’est bon vous pouvez maintenant vous connecter avec user admin et password admin

Configuration du module LDAP

Commencer par installer php-ldap

apt install php-ldap
systemctl restart apache2

Ensuite tout ce passe dans le fichier config.inc

// LDAP vars
$ldapLogin = true;
$ldapUrl = "ldap://address:port"; // address or IP of LDAP serveur
$ldap_domain = 'DOMAINENAME'; // LDAP domain
$ldapBase = "ou=people,dc=society,dc=com"; // Ou chercher dans le ldap
$ldapFilter = "(&(objectClass=OpenLDAPperson)(uid={login}))"; // requete pour trouver le login
$ldap_use_tls = false;

// Info utilisateur
// Cet utilisateur doit avoir des droits de lecture sur le LDAP
$ldapBindUser = '';
$ldapBindPassword = '';

Pour visualiser le ldap, je te conseille jxplorer.

N.B Attention en mettant ldapLogin à true vous ne pourez plus vois connecter avec les comptes en dure (ex : admin).