Install GLPI on Debian 7

 In Dedicated, VPS, Web

Log in to your Linux system as user root and first of all make sure that 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 up on boot:

# update-rc.d apache2 enable

Next, you need to install PHP and some needed extra packages. Enter the following:

# apt-get install php5 libapache2-mod-php5 php5-mysql php5-gd

Good. We already have an active Apache and PHP installation. Now, let’s install MySQL:

# apt-get install mysql-server

If you somehow didn’t setup a root password when prompted during the installation of MySQL you can fix that with the the post-installation script ‘mysql_secure_installation’ in order to set a 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

Once you configured your MySQL root password, create a database needed for the GLPI installation. Enter 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 in which GLPI will be downloaded. Of course you can download it to a location of your choice.

# cd /opt

At the time of writing of this tutorial, the latest stable GLPI version is 0.85.4. The download will start after the execution of the below command:

# wget

Let’s unpack the downloaded archive to the Apache’s document root. If you don’t know how to find Apache’s default document root, run:

# grep DocumentRoot grep DocumentRoot /etc/apache2/sites-available/default


DocumentRoot /var/www

Unpack the archive into Apache’s document root directory:

# tar -xvzf glpi-0.85.4.tar.gz  -C  /var/www/

# cd /var/www/glpi/

Set the correct permissions so you can proceed with the installation:

# chmod -R 777 config/
# chmod -R 777 files/

Now start the GLPI installation by opening your favorite web browser and navigating to http://your_server_ip/glpi. Enter the credentials of the MySQL database you already created and finish the installation. You should get the following info 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 reason, delete the install.php file using the following command:

# rm install/install.php

You will be welcomed by the login page…

After you log in, change the password according to your needs. For more information, check GLPI official documentation.

Congratulations, you have successfully installed GLPI on a Debian 7 system.

Recommended Posts

Start typing and press Enter to search