0% found this document useful (0 votes)
70 views2 pages

GLPi

This document provides instructions for installing and configuring the GLPI asset management system on a server. It includes steps to install necessary software like Apache, PHP, and MariaDB database. It describes configuring the timezone, creating a web folder for GLPI, downloading the GLPI files, setting permissions, creating the GLPI database and user, installing GLPI via the console, configuring cron jobs for GLPI tasks, and accessing it via the server's IP address.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views2 pages

GLPi

This document provides instructions for installing and configuring the GLPI asset management system on a server. It includes steps to install necessary software like Apache, PHP, and MariaDB database. It describes configuring the timezone, creating a web folder for GLPI, downloading the GLPI files, setting permissions, creating the GLPI database and user, installing GLPI via the console, configuring cron jobs for GLPI tasks, and accessing it via the server's IP address.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Instalar os softwares necessários:

sudo apt-get -y install bash-completion chrony xz-utils libarchive-tools bzip2


unzip curl sendmail
sudo apt-get -y install apache2 libapache2-mod-php php-soap php-cas
sudo apt-get -y install php-
{apcu,curl,gd,imap,ldap,mysql,xmlrpc,xml,mbstring,bcmath,intl,zip,bz2}
sudo apt-get -y install php-mail libphp-phpmailer

Banco de Dados:
sudo apt-get -y install mariadb-server

Time Zone
sudo timedatectl seglt-timezone America/Sao_Paulo
sudo systemctl enable --now chrony
chronyc sources

Criar uma pasta WEB para o GLPI:


sudo mkdir -p /var/www/html/glpi
sudo -i
# echo -e "<Directory \"/var/www/html/glpi\">\nAllowOverride All\n</Directory>"
> /etc/apache2/conf-available/glpi.conf

a2enconf glpi.conf
systemctl reload apache2

Fazer o download do GLPI:


wget -O- https://github.com/glpi-project/glpi/releases/download/10.0.1/glpi-
10.0.1.tgz | tar -zxv -C /var/www/html/
exit

Permissão ao usuario:
chown -vRf www-data:www-data /var/www/html/glpi
sudo find /var/www/html/glpi -type d -exec chmod 755 {} \;
sudo find /var/www/html/glpi -type f -exec chmod 644 {} \;

Configurando o Banco de Dados


mysql -u root -p

$ sudo mysql -e "create database glpidb character set utf8"


$ sudo mysql -e "create user 'glpi_admin'@'localhost' identified by '!@#asd253'"
$ sudo mysql -e "grant all privileges on glpidb.* to 'glpi_admin'@'localhost' with
grant option"

Time zone do Banco de dados


$ mysql_tzinfo_to_sql /usr/share/zoneinfo | sudo mysql mysql
$ sudo mysql -e "GRANT SELECT ON mysql.time_zone_name TO 'glpi'@'localhost';"
$ sudo mysql -e "FLUSH PRIVILEGES;"

Instalando o GLPI via shell:


sudo php /var/www/html/glpi/bin/console glpi:database:install --db-host='localhost'
--db-name='glpidb' --db-user='glpi_admin' --db-password='!@#asd253'

Acertar mais uma vez o dono dos arquivos:


chown -vRf www-data:www-data /var/www/html/glpi/files

Configuração do CRON para o GLPI poder disparar tarefas automaticamente:


$ sudo -i
# echo -e "* * * * *\troot\tphp\t/var/www/html/glpi/front/cron.php" >> /etc/crontab
# exit
$ sudo systemctl restart cron.service

http://IP DO Servidor/glpi/

You might also like