Difference between revisions of "Glpi"

From Alpine Linux
Jump to: navigation, search
(Category:SQL)
Line 1: Line 1:
== What is GLPI? ==
 
 
 
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 (computer, software, printers...). 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.
 
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 (computer, software, printers...). 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.
  
Line 8: Line 6:
 
2) management and the history of the maintenance actions and the bound procedures. This application is dynamic and is directly connected to the users who can post requests to the technicians. An interface thus authorizes the latter with if required preventing the service of maintenance and indexing a problem encountered with one of the technical resources to which they have access.
 
2) management and the history of the maintenance actions and the bound procedures. This application is dynamic and is directly connected to the users who can post requests to the technicians. An interface thus authorizes the latter with if required preventing the service of maintenance and indexing a problem encountered with one of the technical resources to which they have access.
  
== Set up GLPI on Alpine Linux ==
+
== Install lighttpd, PHP, and MySql ==
 
 
This document will be a quick c/p guide to setup GLPI on Alpine linux. What we will setup is the following:
 
 
 
* Lighttpd with PHP
 
* Mysql
 
* GLPI
 
 
 
== Install lighttpd, PHP and MySql ==
 
  
 
{{:Setting Up Lighttpd With FastCGI}}
 
{{:Setting Up Lighttpd With FastCGI}}
Line 43: Line 33:
 
== Installing GLPI ==
 
== Installing GLPI ==
  
'''Install GLPI'''
+
Create a folder named {{Path|webapps}}
 
 
Make webapps folder
 
  
{{Cmd|mkdir /usr/share/webapps/ -p}}
+
{{Cmd|mkdir -p /usr/share/webapps/}}
  
Download  
+
Download the source code archive
  
 
{{Cmd|cd /usr/share/webapps/
 
{{Cmd|cd /usr/share/webapps/
Line 59: Line 47:
 
rm glpi-0.80.4.tar.gz}}
 
rm glpi-0.80.4.tar.gz}}
  
Change Folder Persmissions
+
Change the folder permissions
  
 
{{Cmd|chmod -R 777 /usr/share/webapps/glpi/}}
 
{{Cmd|chmod -R 777 /usr/share/webapps/glpi/}}
  
Make symlinks to GLPI
+
Create a symlink to the {{Path|glpi}} folder
  
 
{{Cmd|ln -s /usr/share/webapps/glpi/ /var/www/localhost/htdocs/glpi}}
 
{{Cmd|ln -s /usr/share/webapps/glpi/ /var/www/localhost/htdocs/glpi}}
Line 69: Line 57:
 
== Configuring GLPI ==
 
== Configuring GLPI ==
  
Browse to: http://WEBSERVER_IP_ADDRESS/glpi and Install GLPI completing the information as appropriate from the web browser.
+
Browse to: http://WEBSERVER_IP_ADDRESS/glpi and install GLPI by completing the information as appropriate from the web browser.
  
 
GLPI Installation steps:
 
GLPI Installation steps:
Line 104: Line 92:
 
You can delete or modify these accounts as well as the first entries in the database. '''Use GLPI'''.
 
You can delete or modify these accounts as well as the first entries in the database. '''Use GLPI'''.
  
You have GLPI  system working, to access go to http://WEBSERVER_IP_ADDRESS/glpi and enjoy!
+
Browse to http://WEBSERVER_IP_ADDRESS/glpi now
  
 
[[Category:SQL]]
 
[[Category:SQL]]

Revision as of 11:14, 22 January 2013

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 (computer, software, printers...). 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.

The principal functionalities of the application are :

1) the precise inventory of all the technical resources. All their characteristics will be stored in a database. 2) management and the history of the maintenance actions and the bound procedures. This application is dynamic and is directly connected to the users who can post requests to the technicians. An interface thus authorizes the latter with if required preventing the service of maintenance and indexing a problem encountered with one of the technical resources to which they have access.

Install lighttpd, PHP, and MySql

For installing the additional packages first activate community packages:

vi /etc/apk/repositories

Uncomment the following:

http://pkg.example.com/alpine/v3.11/community

Update the packagelist:

apk update

Install the additional packages:

apk add lighttpd php7-common php7-iconv php7-json php7-gd php7-curl php7-xml php7-mysqli php7-imap php7-cgi fcgi php7-pdo php7-pdo_mysql php7-soap php7-xmlrpc php7-posix php7-mcrypt php7-gettext php7-ldap php7-ctype php7-dom

Configure Lighttpd

Edit lighttpd.conf

vi /etc/lighttpd/lighttpd.conf

Uncomment line:

include "mod_fastcgi.conf"


Edit mod_fastcgi.conf

vi /etc/lighttpd/mod_fastcgi.conf

Edit the section:

/usr/bin/php-cgi

To:

/usr/bin/php-cgi7

Start lighttpd service and add to needed runlevel

rc-service lighttpd start && rc-update add lighttpd default

Install Mysql server packages

apk add mysql mysql-client php-mysql php-mysqli

Configuring MySql

/usr/bin/mysql_install_db --user=mysql
/etc/init.d/mysql start && rc-update add mysql default
/usr/bin/mysqladmin -u root password 'password'

Create the GLPI database

Note: you can create the database from command line or from the GLPI web page later.

mysql -u root -p

CREATE DATABASE glpi; GRANT ALL PRIVILEGES ON glpi.* TO "root"; FLUSH PRIVILEGES; EXIT

Installing GLPI

Create a folder named webapps

mkdir -p /usr/share/webapps/

Download the source code archive

cd /usr/share/webapps/ wget http://fossies.org/unix/misc/glpi-0.80.4.tar.gz

Unpack and delete tar file

tar zxvf glpi-0.80.4.tar.gz rm glpi-0.80.4.tar.gz

Change the folder permissions

chmod -R 777 /usr/share/webapps/glpi/

Create a symlink to the glpi folder

ln -s /usr/share/webapps/glpi/ /var/www/localhost/htdocs/glpi

Configuring GLPI

Browse to: http://WEBSERVER_IP_ADDRESS/glpi and install GLPI by completing the information as appropriate from the web browser.

GLPI Installation steps:

Note: After select each option, pres "Ok" or "Continue" button.

GLPI SETUP

  • Select your language
  • Licence
I have read and ACCEPT the terms of the license written above.
  • Beginning of the installation - Installation or update of GLPI
  • Choose 'Install' for a completely new installation of GLPI.
  • Select 'Update' to update your version of GLPI from an earlier version
  • Checking of the compatibility of your environment with the execution of GLPI
  • Continue ?
  • Database connection setup
  • Mysql server: localhost
  • Mysql user: root
  • Mysql password : password
  • Test of the connection at the database
Database connection successful
Create a new database or use an existing one: glpi
  • Database created

OK - database was initialized Default values have been entered, feel free to delete them if you want Upon first connection you can use the login glpi and the password glpi in order to access the application with administrator rights

After click on "continue" you will see The installation is finished.

Congratulations, you installed GLPI!

You can delete or modify these accounts as well as the first entries in the database. Use GLPI.

Browse to http://WEBSERVER_IP_ADDRESS/glpi now