Instalação GLPI 9.5.2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

---> CentOS 7 e MariaDB 10.

4 com: <---

--> GLPI 9.5.2 <--

PREPARAÇÃO DO SO:

yum -y update && yum -y upgrade

yum -y install epel-release

yum -y install wget curl

yum -y update && yum -y upgrade

gedit /etc/sysconfig/selinux

SELINUX=enforcing

para

SELINUX=disabled

systemctl stop firewalld && systemctl disable firewalld

INSTALAÇÃO BANCO MARIADB:

gedit /etc/yum.repos.d/mariadb.repo

# MariaDB 10.4 CentOS repository list - created 2019-07-20 01:04 UTC


# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

yum -y install MariaDB-server MariaDB-client

systemctl start mariadb && systemctl enable mariadb

mysql_secure_installation

CRIAÇÃO DOS BANCOS:

GLPI - 9.5.2

mysql -uroot -p

create database glpi;

grant all privileges on glpi.* to glpi@'localhost' identified by '123mudar';

grant select on `mysql`.`time_zone_name` to 'glpi'@'localhost';

flush privileges;

quit

systemctl restart mariadb

PHP INSTALAÇÃO E CONFIGURAÇÃO:


rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

yum --enablerepo=remi-php73 install php httpd php-ldap php-imap php-opcache php-pecl-


apcu-bc php-pecl-apcu php-xmlrpc php-pear-CAS php-pear-MDB2-Drivermysqli php-mbstring
php-gd php-horde-Horde-Xml-Element php-mysqli php-zip php-sodium php-soap

systemctl start httpd && systemctl enable httpd

gedit /etc/php.ini

;date.timezone =
para
date.timezone = America/Sao_Paulo

upload_max_filesize = 20M

gedit /etc/httpd/conf/httpd.conf

AllowOverride nome

para

AllowOverride All

systemctl restart httpd

SISTEMAS INSTALAÇÃO E CONFIGURAÇÃO:

GLPI – 9.5.2

wget https://github.com/glpi-project/glpi/releases/download/9.5.2/glpi-9.5.2.tgz

tar -zxvf glpi-9.5.2.tgz


mv glpi /var/www/html/

chown apache:apache -Rf /var/www/html/glpi

chmod 775 -Rf /var/www/html/glpi -Rf

gedit /var/www/html/glpi/inc/based_config.php

$tz = ini_get('date.timezone');

para

$tz = "America/Sao_Paulo";

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -p -u root mysql

systemctl restart mariadb

CONFIGURAÇÕES EXTRA:

gedit ~/.bash_profile

export VISUAL="gedit"

. ~/.bash_profile

crontab -e

*/1 * * * * /usr/bin/php /var/www/html/glpi/front/cron.php

crontab -l
yum -y update && yum -y upgrade

CONFIGURAÇÃO DE INTERFACE:

GLPI - 9.5.2

ifconfig

IP/glpi

cd /var/www/html/glpi/install/

rm -rf install.php

systemctl restart httpd

You might also like