nala install apache2 -y
systemctl start apache2
systemctl enable apache2
systemctl status apache2
nala install mariadb-server -y
systemctl start mariadb
systemctl enable mariadb
systemctl status mariadb
mysql_secure_installation
use root password
unix socket - y
change root - n
removeanonymous - y
disallow root login - y
removedb - y
reload privilege - y
mysql -u root -p
show databases;
exit;
nala install php-ldap php-imap php-apcu php-xmlrpc php-cas php-mysqli php-mbstring php-curl php-gd php-simplexml php-intl php-zip php-bz2 -y
php -v
nano /var/www/html/phpinfo.php
<?php
phpinfo();
?>
systemctl restart apache2
www.localhost/phpinfo.php
nala install vim wget tar php-pear php-imagick php-memcache php-pspell php-tidy php-xsl libapache2-mod-php php-mysql -y
mysql -u root -p
CREATE DATABASE glpi_db;
CREATE USER glpi_user@localhost IDENTIFIED BY 'glpi_PWD';
GRANT ALL ON glpi_db.* TO glpi_user@localhost;
FLUSH PRIVILEGES;
exit;
cd /var/www/
wget https://github.com/glpi-project/glpi/releases/download/10.0.17/glpi-10.0.17.tgz
tar -xvf glpi-10.0.17.tgz
chown -R www-data: glpi
chmod -R 755 glpi
nono /etc/apache2/sites-available/glpi.conf
Alias "/glpi" "/var/www/glpi/public"
<Directory /var/www/glpi/public>
Require all granted
RewriteEngine On
# Ensure authorization headers are passed to PHP.
# Some Apache configurations may filter them and break usage of API, CalDAV, ...
RewriteCond %{HTTP:Authorization} ^(.+)$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect all requests to GLPI router, unless file exists.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</Directory>
a2ensite glpi.conf
a2enmod rewrite
systemctl restart apache2
nano /etc/php/8.2/apache2/php.ini
; Whether or not to add the httpOnly flag to the cookie, which makes it
; inaccessible to browser scripting languages such as JavaScript.
; https://php.net/session.cookie-httponly
session.cookie_httponly = on
www.<IP>/glpi
next
localhost
glpiuser
password
rm -fr /var/www/glpi/install
For security reasons, please remove file: install/install.php
glpi/glpi admin account,
tech/tech technical account,
normal/normal “normal” account,
post-only/postonly post-only account.