From 4662ff770c460c4a9128446d39ea4cb0d34c5de3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 13 Jun 2018 06:53:38 +0200 Subject: save installation notes --- glpi-93-c7.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 glpi-93-c7.md diff --git a/glpi-93-c7.md b/glpi-93-c7.md new file mode 100644 index 0000000..5b97f6a --- /dev/null +++ b/glpi-93-c7.md @@ -0,0 +1,70 @@ +# INSTALLATION NOTES + +On CentOS 7.5 - fresh install - June 2018 + + +## Repositories + + # yum install centos-release-scl + # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm + # yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm + # yum install yum-utils + +## MariaDB 10.2 + +### Install + + # yum install rh-mariadb102-mariadb-server + +### Start and enable the service + + # systemctl enable --now rh-mariadb102-mariadb + +### Secure it + + # scl enable rh-mariadb102 bash + # mysql --version + mysql Ver 15.1 Distrib 10.2.8-MariaDB... + # 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 + +## Apache HTTP Server and PHP 7.2 + +### Install + + # yum-config-manager --enable remi-php72 + # yum install httpd php php-opcache php-apcu + # php -v + PHP 7.2.6 (cli) (built: May 23 2018 09:50:51) ( NTS ) + +### Start and enable the service + + # systemctl enable --now httpd + +## GLPI 9.3 + +### Install + + # yum-config-manager --enable remi + # yum-config-manager --enable remi-glpi93 + # yum install glpi + +### Populate the DB + + # cd /usr/share/glpi/scripts/ + # php cliinstall.php --db=glpi --user=glpi --pass=glpisecret + +## Done + + Browse http://servername/glpi/ (login=glpi, password=glpi) + + \ No newline at end of file -- cgit