HowTo install GLPI 9.4.4 on NethServer 7.7

# Download and put glpi in right place
wget https://github.com/glpi-project/glpi/releases/download/9.4.4/glpi-9.4.4.tgz
tar -xzf glpi-9.4.4.tgz
mv glpi /usr/share/


# Set owner to apache
chown -R apache:apache /usr/share/glpi


# Create httpd conf for glpi
cat << EOF > /etc/httpd/conf.d/glpi.conf
Alias /glpi /usr/share/glpi
<Directory /usr/share/glpi>
  Require all granted
  <FilesMatch \.php$>
     SetHandler "proxy:fcgi://127.0.0.1:9001"
  </FilesMatch>
</Directory>
<Directory /usr/share/glpi/files>
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1
  Allow from ::1
  Allow from localhost
</Directory>
EOF


# Install Nethserver rh-php71 and extensions and mariadb 10.2 from stephdl repo
yum install http://mirror.de-labrusse.fr/NethServer/7/x86_64/nethserver-stephdl-1.0.7-1.ns7.sdl.noarch.rpm

yum -y install nethserver-rh-php71-php-fpm rh-php71-php-mysqlnd rh-php71-php-mbstring rh-php71-php-gd rh-php71-php-ldap \
rh-php71-php-imap rh-php71-php-opcache rh-php71-php-xmlrpc nethserver-rh-mariadb102


# Create database and user
mysql102
create database glpi;
grant all privileges on glpi.* to glpi@localhost identified by 'Your-MariaDB-SECRET';
exit;


# Restart services
systemctl restart httpd
systemctl restart rh-php71-php-fpm


# Install Wizzard
https://<Your-IP-or-Domain>/glpi


Username: glpi
Password: glpi


rm -f /usr/share/glpi/install/install.php

5 Likes

should be
https://<Your-IP-or-Domain>/glpi/install
Also point out that Your-DB-SECRET is the password for mariadb’s user gpli