Tuesday 20 October 2015

IT And Asset Management System With GLPI On Centos6/ RHEL 6

GLPI is the Information Resource-Manager with an additional Administration Interface. You can use it to build up a database with an inventory for your company. It has enhanced functions to make the daily life for the administrators easier, like a job-tracking-system with mail-notification and methods to build a database with basic information about your network-topology.

Install GLPI on Centos 6 or RHEL6

Let us setup GLPI Asset management system using GLPI on our centos 6.6. GLPI is web based deployment software, we have to setup a LAMP server in our centos 6.6. Follow the below link to setup LAMP server on centos 6


Now we have to create a database for GLPI. To do so, log in to your MySQL server using command:

# mysql -u root -p
Now create a database called ‘glpidb’ and database user called ‘glpiuser’ with password ‘redhat’ as described below.

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 190
Server version: 5.5.31-0+wheezy1
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database glpidb;
Query OK, 1 row affected (0.02 sec)
mysql> grant all on glpidb.* to glpiuser@localhost identified by 'redhat';
Query OK, 0 rows affected (0.01 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit

Bye

Getting GLPI

Download the latest GLPI package here. Or you can directly download it from your terminal using command:

# wget https://forge.indepnet.net/attachments/download/1615/glpi-0.84.3.tar.gz
Extract the tarball using command:
# tar -zxvf glpi-0.84.3.tar.gz
Move the extracted files to your webserver root document folder.
# mv glpi/ /var/www/html
Set Read/Write permissions of the following directories.
# chmod -R 777 /var/www/html/glpi/files/
# chmod -R 777 /var/www/html/glpi/config/
Begin Installation
The rest of the installation is web based and pretty easy. Point your web browser with URL http://ip-address/glpi or http://domain-name/glpi and follow the onscreen instructions.

You should see the following screen. Select your language and click Ok.


Accept the License agreement and click Ok.

If it is a new installation click Install button, else click Upgrade button to upgrade from old version to most recent new version. I want to install a fresh version of GLPI, hence i clicked Install button
.


If all seems well, you should see the following screen. If there are any errors, check for the file permissions and start over the installation again.

Enter the MySQL credentials such as hostname, user and password and click Continue.

If you have already created a MySQL database it should have listed in the next screen as shown below, else you have to create a new one by clicking on the link Create new database. I have already created a database called ‘glpidb’, hence i selected it.



Click Continue.


Congratulations! We have installed GLPI on our server successfully.

The default user accounts and their passwords will be shown in the above window. However i have listed them below for the sake of clarity.

– 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

Please note them. You can change them later.


Click Use GLPI to proceed. Let us log in to GLPI administrative Dashboard. The administrative user name is glpi and password is also glpi. Enter them and click Post.


This is how my Administrative dashboard looks.

At the first log in it will show some precautions that be made before using GLPI further.


First you above to change the default users passwords for security reasons. To do that. Go to Administration -> Users -> glpi and input your new password in the password column.

And also you have to remove the install/install.php file for security reasons.

# rm -fr /var/www/glpi/install/install.php
If you made any mistakes or just forgot the password for the administrative account, you can re-run the above setup by deleting the following config/config.php file.

After completing your installation change the permission of the config/config_db.php file to avoid any misconfiguration by users.

# chmod 400 /var/www/glpi/config/config_db.php
Now start using GLPI asset management system by navigating to http://ip-address/glpi.

Usage of GLPI is not that difficult. Just go-through every menus and explore things. If you still want a help documentation, i suggest you to read the Official wiki page.

References: GLPI Project

How to install clamAV on Centos 6

  Install EPEL repo: Before we can do proceed, you must ensure that you have the EPEL yum repository enabled. To do this, CentO...