+Inventário nativo do GLPI 10
Aplicação e Banco de Dados no mesmo Servidor
IP Aplicação - 173.249.12.198
IP Banco de Dados - localhost
ServerName - DNS: glpi10.servicedeskbrasil.com.br
Repositórios e Pacotes - Instalação do GLPI e GLPI Agente
(Apache, PHP 7.4 e MySQL Server > Percona 5.7)
dnf -y install net-tools wget yum-utils bzip2 unzip tar
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf -y install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
dnf install 'dnf-command(config-manager)'
dnf config-manager --set-enabled powertools
dnf config-manager --set-enabled remi
dnf -y module disable mysql
percona-release setup ps57
dnf -y install Percona-Server-server-57 Percona-Server-client-57
dnf -y module reset php
dnf -y module install php:remi-7.4
dnf -y install yum-plugin-copr && dnf -y copr enable ligenix/enterprise-glpi
dnf -y install glpi php-pecl-zendopcache php-opcache php-pecl-apcu php-soap php-xmlrpc php-pear-CAS php-snmp php-sodium
dnf -y install certbot python3-certbot-apache
systemctl enable --now httpd
systemctl enable --now mysqld
systemctl enable --now firewalld
systemctl restart firewalld
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
setsebool -P httpd_can_sendmail 1
setsebool -P httpd_can_network_connect 1
setsebool -P httpd_can_network_connect_db 1
setsebool -P httpd_mod_auth_ntlm_winbind 1
setsebool -P allow_httpd_mod_auth_ntlm_winbind 1
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
sed -i 's,;date.timezone =,date.timezone = America/Sao_Paulo,g' /etc/php.ini
sed -i 's,upload_max_filesize = 2M,upload_max_filesize = 20M,g' /etc/php.ini
sed -i 's,install,install_ori,g' /etc/httpd/conf.d/glpi.conf
sed -i 's,#<VirtualHost,<VirtualHost,g' /etc/httpd/conf.d/glpi.conf
sed -i 's,# DocumentRoot /usr/share/glpi, DocumentRoot /usr/share/glpi,g' /etc/httpd/conf.d/glpi.conf
sed -i 's,# ServerName glpi.example.com, ServerName glpi10.servicedeskbrasil.com.br,g' /etc/httpd/conf.d/glpi.conf
sed -i 's,#</VirtualHost>,</VirtualHost>,g' /etc/httpd/conf.d/glpi.conf
systemctl restart httpd
Atualização do Linux
dnf -y update
GLPI 10 - Final (glpi-10.0.0.tgz)
cd
mv /usr/share/glpi /usr/share/glpi-v95
wget https://github.com/glpi-project/glpi/releases/download/10.0.0/glpi-10.0.0.tgz
tar -zxvf glpi-10.0.0.tgz
mv glpi /usr/share/.
setenforce 0
Definição do local dos arquivos, diretórios e documentos
mkdir -p /var/lib/glpi/files/_documents
echo "<?php" >> /usr/share/glpi/inc/downstream.php && echo "" >> /usr/share/glpi/inc/downstream.php && echo "// config" >> /usr/share/glpi/inc/downstream.php && echo "defined('GLPI_CONFIG_DIR') or define('GLPI_CONFIG_DIR', (getenv('GLPI_CONFIG_DIR') ?: '/etc/glpi'));" >> /usr/share/glpi/inc/downstream.php && echo "" >> /usr/share/glpi/inc/downstream.php && echo "if (file_exists(GLPI_CONFIG_DIR . '/local_define.php')) {" >> /usr/share/glpi/inc/downstream.php && echo " require_once GLPI_CONFIG_DIR . '/local_define.php';" >> /usr/share/glpi/inc/downstream.php && echo "}" >> /usr/share/glpi/inc/downstream.php && echo "" >> /usr/share/glpi/inc/downstream.php && echo "// marketplace plugins" >> /usr/share/glpi/inc/downstream.php && echo "defined('GLPI_MARKETPLACE_ALLOW_OVERRIDE') or define('GLPI_MARKETPLACE_ALLOW_OVERRIDE', false);" >> /usr/share/glpi/inc/downstream.php && echo "" >> /usr/share/glpi/inc/downstream.php && echo "// runtime data" >> /usr/share/glpi/inc/downstream.php && echo "defined('GLPI_VAR_DIR') or define('GLPI_VAR_DIR', '/var/lib/glpi/files');" >> /usr/share/glpi/inc/downstream.php && echo "" >> /usr/share/glpi/inc/downstream.php && echo "define('GLPI_DOC_DIR', GLPI_VAR_DIR . '/_documents');" >> /usr/share/glpi/inc/downstream.php && echo "define('GLPI_CRON_DIR', GLPI_VAR_DIR . '/_cron');" >> /usr/share/glpi/inc/downstream.php && echo "define('GLPI_DUMP_DIR', GLPI_VAR_DIR . '/_dumps');" >> /usr/share/glpi/inc/downstream.php && echo "define('GLPI_GRAPH_DIR', GLPI_VAR_DIR . '/_graphs');" >> /usr/share/glpi/inc/downstream.php && echo "define('GLPI_LOCK_DIR', GLPI_VAR_DIR . '/_lock');" >> /usr/share/glpi/inc/downstream.php && echo "define('GLPI_PICTURE_DIR', GLPI_VAR_DIR . '/_pictures');" >> /usr/share/glpi/inc/downstream.php && echo "define('GLPI_PLUGIN_DOC_DIR', GLPI_VAR_DIR . '/_plugins');" >> /usr/share/glpi/inc/downstream.php && echo "define('GLPI_RSS_DIR', GLPI_VAR_DIR . '/_rss');" >> /usr/share/glpi/inc/downstream.php && echo "define('GLPI_SESSION_DIR', GLPI_VAR_DIR . '/_sessions');" >> /usr/share/glpi/inc/downstream.php && echo "define('GLPI_TMP_DIR', GLPI_VAR_DIR . '/_tmp');" >> /usr/share/glpi/inc/downstream.php && echo "define('GLPI_UPLOAD_DIR', GLPI_VAR_DIR . '/_uploads');" >> /usr/share/glpi/inc/downstream.php && echo "define('GLPI_CACHE_DIR', GLPI_VAR_DIR . '/_cache');" >> /usr/share/glpi/inc/downstream.php && echo "" >> /usr/share/glpi/inc/downstream.php && echo "// log" >> /usr/share/glpi/inc/downstream.php && echo "defined('GLPI_LOG_DIR') or define('GLPI_LOG_DIR', '/var/log/glpi');" >> /usr/share/glpi/inc/downstream.php && echo "" >> /usr/share/glpi/inc/downstream.php && echo "// use system cron" >> /usr/share/glpi/inc/downstream.php && echo "define('GLPI_SYSTEM_CRON', true);" >> /usr/share/glpi/inc/downstream.php && echo "" >> /usr/share/glpi/inc/downstream.php
MySQL (Percona) - Banco de Dados
Senha padrão criada no Percona (MySQL)
cat /var/log/mysqld.log |grep generated
Configuração de Segurança do Percona
mysql_secure_installation
Digite a senha padrão gerada pelo Percona
Coloque uma nova senha para o root
Y
Y
Y
Y
Y
TimeZone do GLPI no Percona / MySQL
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -p -u root mysql
Coloque a senha do root
systemctl restart mysqld
Configurando o Banco de Dados e Acesso x Usuário glpi
Banco de Dados: glpi
Acesso / Usuário: glpi
mysql -uroot -p
CREATE USER 'glpi'@'localhost' IDENTIFIED BY 'GLPiDB@2022';
GRANT USAGE ON . TO 'glpi'@'localhost';
CREATE DATABASE IF NOT EXISTS glpi default CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
GRANT ALL PRIVILEGES ON glpi.* TO 'glpi'@'localhost';
FLUSH PRIVILEGES;
GRANT SELECT ON mysql.time_zone_name TO 'glpi'@'localhost';
SELECT NOW();
SET @@global.time_zone = '+3:00';
SELECT NOW();
SET time_zone='America/Sao_Paulo';
SELECT @@time_zone;
FLUSH PRIVILEGES;
show databases;
select host, user from mysql.user;
exit
systemctl restart mysqld
Instalação do GLPI via Console
glpi-console glpi:database:install -Lpt_BR -Hlocalhost -dglpi -uglpi -pGLPiDB@2022 --no-telemetry --force -n && mv /usr/share/glpi/install /usr/share/glpi/install_ori && rm -rf /var/log/glpi/* && chown -R apache:apache /usr/share/glpi/marketplace/ && chown -R apache:apache /var/lib/glpi/files && chown -R apache:apache /var/log/glpi && mkdir /var/lib/glpi/files/_documents && chown -R apache:apache /var/lib/glpi/files/_documents
SELINUX - Não esquecer!!!
setenforce 0
Links do GLPI 10
- https://glpi10.com/
- https://glpi-project.org/migration-to-glpi-10-faq
- https://github.com/glpi-project/glpi/releases
- https://github.com/glpi-project/glpi/milestones
Links dos Plugins para o GLPI 10
Links do GLPI x TimeZone
- https://glpi-install.readthedocs.io/en/feature-timezones
- https://glpi-install.readthedocs.io/en/feature-timezones/install/index.html#files-and-directories-locations
Como implantar o GLPI?
Na Servicedesk Brasil cuidamos de tudo, desde a consultoria, alinhamento estratégico, implementação, automação de processos, fluxos, identidade visual personalizada, suporte, treinamento e desenvolvimento ou integração.
Nosso lema é ajudar o seu negócio crescer, aqui tem um Time esperando o seu Projeto de GLPI, permita que possamos potencializar e digitalizar os processos da sua organização!
A gente come, bebe e dorme GLPI. Somos APAIXONADOS pelo que fazemos.
Fale com um especialista: falecom@servicedeskbrasil.com.br
Nós queremos te ouvir!!!