GLPI- Digital Asset and Ticket management server installation process step by step in Ubuntu 22.04
Resource Requirement- Active Internet connection
Minimum CPU 2 core
Minimum RAM 2 GB
This is the documentation prepared for Ubuntu version
22.04 LTS.
User Login: root (that's why I'm not using sudo)
After successfully installing Ubuntu 22.04
Update Ubuntu
apt update
apt -y upgrade
Install MariaDB Database server for GLPI
database.
apt update
apt install
mariadb-server
mysql_secure_installation (set a new password for DB)
sudo mysql -u root
-p (login into DB)
CREATE DATABASE glpi;
CREATE
USER 'glpi'@'localhost' IDENTIFIED BY 'Abc@123';
GRANT ALL
PRIVILEGES ON glpi.* TO 'glpi'@'localhost';
FLUSH
PRIVILEGES;
EXIT;
Install
PHP and Apache 2
apt
-y install php php-{curl,zip,bz2,gd,imagick,intl,apcu,memcache,imap,mysql,cas,ldap,tidy,pear,xmlrpc,pspell,mbstring,json,iconv,xml,gd,xsl}
apt
-y install apache2 libapache2-mod-php
nano /etc/php/*/apache2/php.ini (Edit the file)
Search and edit the below-line
session.cookie_httponly = on
Download
and Install GLPI
apt-get -y install wget curl
VER=$(curl
-s https://api.github.com/repos/glpi-project/glpi/releases/latest|grep
tag_name|cut -d '"' -f 4)
wget
https://github.com/glpi-project/glpi/releases/download/$VER/glpi-$VER.tgz
tar
xvf glpi-$VER.tgz (Uncompress the downloaded the archive)
Move
the created glpi folder to the /var/www/html
directory.
mv glpi /var/www/html/
chown -R www-data:www-data /var/www/html/
Note-
Server: This code is based
on the latest version of GLPI installation. If any specific version needed, download it from the official page of GLPI or other download source and extract it to /var/www/html with the folder name glpi.
Agents: The most used
and reliable agent for GLPI is the Fusion Inventory. It must be extracted to GLPI’s
Plugins directory.
Now open the browser and start the setup process for GLPI.
After that, you can see the below captures
Input MySQL server and
DB user name password which is earlier created.
Select GLPI DB
which is earlier created. Then the login page will displayed.
Very helpful
ReplyDelete