Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Glpi - Commande Line

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Steps 1: Download and install vmware workstation player.

https://www.vmware.com/products/workstation-player/workstation-player-evaluation.html

Steps 2: Create virtual machine;

Steps 3: Install ubuntu server

https://ubuntu.com/download/server

Steps 4: download and install Putty

https://www.putty.org/

Steps 5: connect to your server with Putty

install Webmin:

sudo apt update && sudo apt upgrade


sudo apt install software-properties-common apt-transport-https
wget -qO- https://download.webmin.com/jcameron-key.asc | sudo tee -a
/etc/apt/trusted.gpg.d/jcameron-key.asc
sudo add-apt-repository "deb [arch=amd64]
http://download.webmin.com/download/repository sarge contrib"
sudo apt update
sudo apt install webmin
sudo systemctl status webmin
sudo ufw allow 10000/tcp
https://server-ip-address:10000

Install LAMP Stack on Ubuntu:


sudo apt update
sudo apt upgrade
sudo apt install apache2 apache2-utils
sudo systemctl enable apache2
sudo systemctl start apache2
sudo systemctl status apache2
sudo apt install software-properties-common mysql-server mysql-client

sudo mysql -u root -p


UPDATE mysql.user SET authentication_string=null WHERE User='root';
flush privileges;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY
'your_password_here';
exit

mysql_secure_installation
sudo add-apt-repository ppa:ondrej/php
sudo apt update

sudo apt install php php-{curl,intl,zip,soap,xml,gd,mbstring,bcmath,common,json,cli,ldap,xmlrpc}


sudo systemctl restart apache2
sudo apt install phpmyadmin

Steps 6: Download and install GLPI:

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


tar xvf glpi-10.0.1.tgz
sudo mv glpi /var/www/html/
sudo chown -R www-data:www-data /var/www/html/

Steps 7: Create a database for GLPI by phpmyadmin or by commande:

sudo mysql -u root -p


create database glpidb character set utf8mb4;
create user glpi@localhost identified by 'InsertYourPassHere';
grant all on glpidb.* to 'glpi'@'localhost';
flush privileges;
exit;

If you have a domain name you can configure your web server, otherwise you can use your ip
address followed by the name of the directory where glpi is located:

case 1 : you have a domain name:

sudo nano /etc/apache2/sites-available/glpi.conf

Add the following line:


<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/
ServerName your-domain.com
ServerAlias www.your-domain.com

<Directory /var/www/html/>
Options +FollowSymlinks
AllowOverride All
Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Ctrl+x and y to save the file

Now, we can restart the Apache webserver so that the changes take place:

sudo a2enmod rewrite


sudo a2ensite yourls.conf
sudo systemctl restart apache2.service

Steps 8: Accessing GLPI Web Interface.

GLPI will be available on HTTP port 80 by default. Open your favorite browser and navigate to
http://your-domain.com/glpi/install/install.php
and complete the required steps to finish the installation.

case 2 : you don't have a domain name: use your ip adress http://your ip
adress/glpi/install/install.php

Congratulations! You have successfully installed GLPI. Thanks for using this tutorial for
installing GLPI on Ubuntu server 22
For additional help or useful information, we recommend you check the official GLPI website.

Get glpi Agent : https://nightly.glpi-project.org/glpi-agent/

GLPI Agent is essentially a program used to run automatic inventory and works with GLPI ITSM
software tool.
It also supports running few other tasks like package deployment, information collect, network
devices discovery and inventory,
ESX remote inventory. It also supports agentless inventory through its remoteinventory task.

You might also like