In this tutorial, we will show you how to install GLPI with Apache, PHP and MySQL on a Debian 7 VPS. GLPI is an IT management package software developed in PHP. It offers many functions, one of which is to create an inventory database for your company (computer, monitors, software, printers …).
GLPI has advanced features to make day-to-day life easier for administrators, such as hiring a tracking system with email notifications and methods for creating a database of basic network topology information.
The following are the features of this app:
- Inventory of computers, peripherals, network printers and related components through an interface with OCS Inventory or FusionInventory.
- Office for ticket creation, ticket management, assignment, scheduling, etc.
- License Management (ITIL Compliant)
- Assigning equipment by geographic region to users and groups
- Business and financial information management (purchase, warranty and extensions, damping)
- Equipment health management
- Application management to assist all types of hardware inventory
- The interface allows the user to contact support
- Business management, contracts, documents related to inventory items
- booking equipment
- Manage Frequently Asked Questions (FAQ).
- Report generator: hardware, networks or interventions (support).
- Multilingual support with 45 languages available.
Update the system
Log in to your Linux VPS as root user and first of all make sure all packages are up to date:
# apt-get update && apt-get upgrade -y
The following command will install the Apache web server.
# apt-get install apache2
Enable Apache to start at boot:
# update-rc.d apache2 enable
Next, you need to install PHP and some additional packages required. Enter the following:
# apt-get install php5 libapache2-mod-php5 php5-mysql php5-gd
We already have an active installation of Apache and PHP. Now, let’s install MySQL:
# apt-get install mysql-server
If you did not set the root password during installation when prompted during MySQL installation, you can fix this using the post-installation script ‘mysql_secure_installation’ to set the root password:
# mysql_secure_installation - Set root password? [Y/n] y - Remove anonymous users? [Y/n] y - Disallow root login remotely? [Y/n] y - Remove test database and access to it? [Y/n] y - Reload privilege tables now? [Y/n] y
After you have configured a root password in MySQL, create the database required to install GLPI. Enter the MySQL console as root:
mysql> create database glpi; mysql> grant all privileges on glpi.* to 'glpiusr'@'localhost' identified by 'your_password'; mysql> flush privileges; mysql> exit
In this article we are using the / opt directory for the location where GLPI will be loaded. You can of course upload it to a folder of your choice.
# cd /opt
We will install GLPI version 0.85.4. The download will start after running the following command:
# wget https://forge.indepnet.net/attachments/download/2020/glpi-0.85.4.tar.gz
Let’s unpack the downloaded archive to the document root in Apache. If you don’t know how to find the default Apache document root, run the following command:
# grep DocumentRoot grep DocumentRoot /etc/apache2/sites-available/default
Unpack the archive to your Apache root directory:
# tar -xvzf glpi-0.85.4.tar.gz -C /var/www/ # cd /var/www/glpi/
Set the correct permissions so that you can proceed with the installation:
# chmod -R 777 config/ # chmod -R 777 files/
Now start the GLPI installation by opening your web browser and typing http: // your_server_ip / GLPI. Enter the MySQL database credentials you have already created and finish the installation. You should receive the following information, which means that you have successfully installed GLPI.
Default logins / passwords are: glpi/glpi for the administrator account tech/tech for the technician account normal/normal for the normal account post-only/postonly for the postonly account You can delete or modify these accounts as well as the initial data.
For security reasons, remove the install.php file using the following command:
# rm install/install.php
You will be greeted at the login page:
Once you are logged in, please change the password according to your needs. For more information, see the official GLPI documentation.
Congratulations, you have successfully installed GLPI on your Debian 7 VPS.