summaryrefslogtreecommitdiffstats
path: root/glpi-94-c8.md
blob: 54f330f31f0ae554177b4c964a475cd8440d01e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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)