From dfecdb683158949bf7d7d08d8d622b60f1a1ad71 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 13 May 2019 13:53:21 +0200 Subject: add EL-8 installation notes --- glpi-94-c8.md | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 glpi-94-c8.md diff --git a/glpi-94-c8.md b/glpi-94-c8.md new file mode 100644 index 0000000..54f330f --- /dev/null +++ b/glpi-94-c8.md @@ -0,0 +1,92 @@ +# INSTALLATION NOTES + +On RHEL 8.0 - fresh install - May 2019 + +## Repositories + + # dnf install http://rpms.remirepo.net/enterprise/remi-release-7.rpm + # dnf install dnf-utils + +## As EPEL not yet ready + + # dnf config-manager --set-enabled remi + +## MariaDB 10.3 + +GLPI requires MariaDB >= 10 + +### Install + + # dnf module install mariadb:10.3 + +### Start and enable the service + + # systemctl enable --now mariadb + +### Secure it + + # mysql --version + mysql Ver 15.1 Distrib 10.3.11-MariaDB, for Linux (x86_64) using readline 5.1 + # mysql_secure_installation + +### Create GLPI database and account + + # mysql -uroot -prootsecret + MariaDB> CREATE USER 'glpi'@'%' IDENTIFIED BY 'glpisecret'; + MariaDB> GRANT USAGE ON *.* TO 'glpi'@'%' IDENTIFIED BY 'glpisecret'; + MariaDB> CREATE DATABASE IF NOT EXISTS `glpi` ; + MariaDB> GRANT ALL PRIVILEGES ON `glpi`.* TO 'glpi'@'%'; + MariaDB> FLUSH PRIVILEGES; + MariaDB> exit + Bye + +### Check connection + + # mysql -uglpi -pglpisecret glpi + MariaDB [glpi]> exit + Bye + +## Apache HTTP Server and PHP 7.3 + +GLPI requires PHP >= 5.6, so using the latest version 7.3 for performance (7.2 is also OK). + +### Install + + # dnf module install php:remi-7.3 + # dnf install httpd php-fpm php-opcache php-apcu + # php --version + PHP 7.3.5 (cli) (built: Apr 30 2019 08:37:17) ( NTS ) + Copyright (c) 1997-2018 The PHP Group + Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies + with Zend OPcache v7.3.5, Copyright (c) 1999-2018, by Zend Technologies + + +### Allow access to webserver + + # firewall-cmd --zone=public --add-service=http --permanent + # firewall-cmd --reload + +### Start and enable the service + + # systemctl enable --now php-fpm + # systemctl enable --now httpd + +## GLPI 9.3 + +### Install + + # dnf config-manager --set-enabled remi + # dnf module install glpi:9.4 + +### Populate the DB + + # glpi-console glpi:database:install \ + --db-host=localhost \ + --db-name=glpi \ + --db-user=glpi \ + --db-password=glpisecret + +## Done + + Browse http://servername/glpi/ (login=glpi, password=glpi) + -- cgit