Deploy GLPI + FusionInventory on Ubuntu 18 LTS

1. Update Ubuntu

sudo apt-get update

2. Install MariaDB

sudo apt-get install mariadb-server mariadb-client
sudo mysql_secure_installation
sudo mysql -u root -p 
UPDATE mysql.user SET plugin = ‘mysql_native_password’ WHERE User = ‘root’;
FLUSH PRIVILEGES;
EXIT;
mysql -u root -p
CREATE DATABASE glpidb;
CREATE USER ‘glpiuser’@’localhost’ IDENTIFIED BY ‘glpipwd’;
GRANT ALL ON glpidb.* TO ‘glpiuser’@’localhost’ WITH GRANT OPTION;
GRANT SELECT ON `mysql`.`time_zone_name` TO ‘glpiuser’@’localhost’;
FLUSH PRIVILEGES;
EXIT;

3. Install PHP and Apache

sudo apt-get -y install php php-{curl,gd,imagick,intl,apcu,recode,memcache,imap,mysql,cas,ldap,tidy,pear,xmlrpc,pspell,gettext,mbstring,json,iconv,xml,gd,xsl,zip,bz2}
sudo apt-get -y install apache2 libapache2-mod-php wget

4. Download and Install GLPI

cd /var/www/html
export VER=”9.5.5"
sudo wget https://github.com/glpi-project/glpi/releases/download/$VER/glpi-$VER.tgz
sudo tar xvf glpi-$VER.tgz
sudo chown -R www-data:www-data /var/www/html/glpi
sudo systemctl restart apache2
sudo systemctl status apache2

5. Finish GLPI installation

Default Login Page GLPI

#Post Installation:

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -p -u root mysql
Warning to change password and remove file installation
sudo rm -rf /var/www/html/glpi/install/

#Add Plugins:

cd /var/www/html/glpi/plugins/
sudo wget https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi9.5%2B3.0/fusioninventory-9.5+3.0.tar.bz2
sudo tar xvf fusioninventory-9.5+3.0.tar.bz2
crontab -e
* * * * * /usr/bin/php7.2 /var/www/html/glpi/front/cron.php &>/dev/null
sudo service cron restart

#Install fusioninventory-agent on Ubuntu

sudo apt-get install  dmidecode hwdata ucf hdparm perl libuniversal-require-perl libwww-perl libparse-edid-perl libproc-daemon-perl  libproc-pid-file-perl libfile-which-perl libxml-treepp-perl libyaml-perl libnet-cups-perl libnet-ip-perl libdigest-sha-perl libsocket-getaddrinfo-perl libtext-template-perlsudo apt-get install nmap libnet-snmp-perl libcrypt-des-perl libnet-nbname-perlsudo apt-get install libfile-copy-recursive-perl libparallel-forkmanager-perlsudo apt-get install fusioninventory-agent fusioninventory-agent-task-network fusioninventory-agent-task-deploy fusioninventory-agent-task-esx
sudo nano /etc/fusioninventory/agent.cfg
server = http://192.168.1.222/glpi/plugins/fusioninventory/
sudo fusioninventory-agent

--

--

--

Cloud Consultant | RHCSA | RHCE in Red Hat OpenStack | Google Cloud ACE | AWS SAA | LinkedIn: https://www.linkedin.com/in/achchusnulchikam

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Online store based on Google Sheets + free CRM made on Trello

Binary Tree

Crowe AWS Developer Technical Challenge

Installing Windows Server 2016

Switched LAN Using OPNET IT Guru Academic Edition

Naming Things is Hard 2

Alvin’s Dew Drop Daily — Issue #95

10 Things I wish I knew before giving my First Tech Talk

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ach.Chusnul Chikam

Ach.Chusnul Chikam

Cloud Consultant | RHCSA | RHCE in Red Hat OpenStack | Google Cloud ACE | AWS SAA | LinkedIn: https://www.linkedin.com/in/achchusnulchikam

More from Medium

Jitsi Installation with JWT Support on Ubuntu 18.04 TLS

API gateway and Its Invokation with Lamda

Internet Relay Chat(IRC) Guide(3): Example IRC Communications

Cloudlab Disk Image Tutorial