Your IP...


Monday, November 30, 2009

GLPI best open soruce inventory management system.

This is introduced by glpi-project.org

Here I would like to submit the way I installed this in Cent OS 5.2

For the "glpi" installation you need following services on your server,
  1. Apache (httpd)
  2. Mysql (mysqld)
  3. PHP (php)
After installation your cent os check for the following rpm are available in your system.

[root@inv ~]# rpm -qa |grep httpd

[root@inv ~]# rpm -qa |grep php

[root@inv ~]# rpm -qa |grep mysql-server


my idea is better after fresh installation you can set "yum" for above rpm's

Install using yum update services,

[root@inv ~]# yum -y install httpd php mysql

After yum installation check your rpm's available. it will show like this,

[root@inv ~]# rpm -qa |grep mysql-server
mysql-server-5.0.45-7.el5



[root@inv ~]# rpm -qa |grep php
php-pecl-json-1.2.1-4.el5
php-cli-5.1.6-23.2.el5_3
php-5.1.6-23.2.el5_3
php-pear-1.4.9-4.el5.1
php-pdo-5.1.6-23.2.el5_3
php-pgsql-5.1.6-23.2.el5_3
php-odbc-5.1.6-23.2.el5_3
php-mysql-5.1.6-23.2.el5_3
php-common-5.1.6-23.2.el5_3
php-ldap-5.1.6-23.2.el5_3

[root@inv ~]# rpm -qa |grep httpd
httpd-2.2.3-11.el5_1.centos.3

OK. now our Initial installation is Done.. Now we need to down load glpi latest version from glpi-project.org web site.
By default this site language is not English. so you need to select the top of page language as English.

go to Download page and better always download latest stable version.
chagne your path to,
[root@inv ~]# cd /usr/src/

then,

[root@inv src]# wget http://www.glpi-project.org/IMG/gz/glpi-0.72.3.tar.gz

OK. now we downloaded "glpi-0.72.3.tar.gz" successfully.

now untar the file,

[root@inv src]# tar -zxvf glpi-0.72.3.tar.gz

After it will create a directory called "glpi"

Now copy glpi directory to /var/www/html directory for installation.

[root@inv src]# cp -Rp glpi /var/www/html/

Now we copy glpi to /var/www/html directory.

Now create a data base for glpi in mysql.

Before create data bese in mysql start mysql service,and add to startup

[root@inv src]# /etc/init.d/mysqld start
[root@inv src]# chkconfig mysqld on

Create mysql admin password,

[root@inv src]# mysqladmin -u root password 'abc123'

Note : Here abc123 mean my password for mysql admin. you can use password as your wish.
Then log in to mysql,
[root@inv src]# mysql -u root -p

This will ask your password, in my case abc123
After you put correct password prompt will change to follows,

[root@inv src]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 19
Server version: 5.0.45 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

Now create a data base for glpi

mysql> create database glpidb;
mysql> grant all privileges on glpidb.* to glpiuser@localhost identified by 'glpi';

gives the good rights to the user « glpiuser » on tables of the « glpidb » database. In this example, « glpi » is the password given to the user « glpiuser

Then exit from the mysql
mysql> quit

Ok now we done for data base creation for glpi. now we can continue with installation,
go to,
[root@inv html]# cd /var/www/html/

you can see there is a directory called glpi is there. which we copied previously.

now we give apache user to access for the glpi directory.

[root@inv html]# chown -R apache glpi/
[root@inv html]# chmod 755 glpi/

you can check the right like this,

[root@inv html]# ll
drwxr-xr-x 14 apache root 4096 Oct 27 22:48 glpi

Ok. now start the httpd and add to startup services,

[root@inv html]# /etc/init.d/httpd start
[root@inv html]# chkconfig httpd on


Now go to web browser and type your server ip and continue with installtion,
my case,

http://192.168.100.200/glpi

Sometimes when you try to access through the web browser it wont show the web site. Most of the time this is due to iptables.
So if its like that switch off the iptables

[root@inv html]# /etc/init.d/iptables stop

It will show you glpi installation wizard and language selection,




Click OK to next ...
Accept for the License agreement and click CONTINUE,

Click on Installation Button to continue,

Note: Sometimes in this step you may face problem with Test json fuctions" FAIL. Practically I had this issue and I fixed it using some rpm.
If your "Test json function" fails go to follwing rpm repositary.... and down load php-pecl-json-1.2.1-4.el5.i386.rpm

After download install with no dependency Option.

[root@inv src]# rpm -Uvh --nodeps php-pecl-json-1.2.1-4.el5.i386.rpm

Then restart the server and run the web interface installation again.

OK. If everything are ok we can continue with click on Continue button.
Now it will ask for the data base connection type,
fill the connection type as,
Remember mysql password is "abc123"
Click continue,
Select the data base which we created glpidb and click Continue,

This will Initialized data base connection. Then Click Continue Button,

OK. Now this will show you glpi default username and password for the loggin.
Default logins / passwords are:

glpi/glpi for the administrator account
tech/tech for the technician account
normal for the normal account
post-only/post-only for the postonly account

Click Use GLPI button to Continue,

OK. Now we have successfully installed glpi. now you can login to system first time using default user name and password which is glpi

After you log in to glpi it will like this,


Now you can continue with further customization......
Future I would like to post how to customization interface and file in glpi.

Refer Documents















Thursday, June 4, 2009

Fedora 11 Installation Guide

Go to this link and it will describe you in and out fedora 11 installation.


http://docs.fedoraproject.org/install-guide/f11/en-US/html/

More about linux