Glpi: Difference between revisions

From Alpine Linux
(Created page with '== 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 compa...')
 
(replace /etc/init.d with rc-service)
 
(19 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== What is GLPI? ==
{{draft|This article needs to be updated with apks for recent versions of PHP that are compatible with glpi-10.0.9}}


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 8:
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 MediaWiki on Alpine linux. What we will setup is the following:
{{:Setting Up Lighttpd With FastCGI}}


* Lighttpd with PHP
== Install Mysql server packages ==
* Mysql  
* GLPI


== Install lighttpd, PHP and MySql ==
{{Cmd|apk add mysql mysql-client php5-mysql php5-mysqli}}


apk add lighttpd mysql mysql-client php-mysql php-mysqli php php-xml php-json
== Configuring MySql ==
 
== Configuring Lighttpd ==
 
'''Edit lighttpd.conf'''
 
nano +46 /etc/lighttpd/lighttpd.conf
 
Uncomment lines:
 
uncoment    include "mod_fastcgi.conf", save and exit
 
== Installing and configuring GLPI ==
 
'''Install GLPI'''
 
Download
 
cd /tmp
wget http://www.sfr-fresh.com/unix/misc/glpi-0.72.4.tar
 
Unpack
 
tar xvf glpi-0.72.4.tar
 
Change Folder Name
 
mv glpi /etc/
 
Change Folder Persmissions
 
  chmod -R 777 /etc/glpi/
 
Make Symlink to the GLPI folder
 
  ln -s /etc/glpi/ /var/www/localhost/htdocs/glpi
 
== Starting ==
'''Starting http service and adding to boot'''
 
  /etc/init.d/lighttpd start && rc-update add lighttpd default
 
== Config MySql ==


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


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


mysql -u root -p
{{Cmd|mysql -u root -p}}


CREATE DATABASE glpi;
{{Cmd|CREATE DATABASE glpi;
GRANT ALL PRIVILEGES ON glpi.* TO "root";
GRANT ALL PRIVILEGES ON glpi.* TO "root";
FLUSH PRIVILEGES;
FLUSH PRIVILEGES;
EXIT
EXIT}}


== Config your GLPI ==
== Installing GLPI ==


Browse to: http://WEBSERVER_IP_ADDRESS/glpi and Install GLPI completing the information as appropriate from the web browser.
Create a folder named {{Path|webapps}}


GLPI Installation steps:
{{Cmd|mkdir -p /usr/share/webapps/}}


Note: After select each option, pres "Ok" or "Continue" button.
Download the source code archive


GLPI SETUP
{{Cmd|cd /usr/share/webapps/
wget https://fossies.org/linux/misc/glpi-10.0.9.tgz/}}


1 - Select your language
Unpack and delete tar file


2 - Licence
{{Cmd|tar zxvf glpi-10.0.9.tgz
rm glpi-10.0.9.tgz}}


* I have read and ACCEPT the terms of the license written above.
Change the folder permissions


3 - Beginning of the installation - Installation or update of GLPI
{{Cmd|chmod -R 777 /usr/share/webapps/glpi/}}


* Choose 'Install' for a completely new installation of GLPI.
Create a symlink to the {{Path|glpi}} folder
* Select 'Update' to update your version of GLPI from an earlier version


4 - Checking of the compatibility of your environment with the execution of GLPI
{{Cmd|ln -s /usr/share/webapps/glpi/ /var/www/localhost/htdocs/glpi}}


* Continue ?
== Configuring GLPI ==


5 - Database connection setup
Browse to: <nowiki>http://WEBSERVER_IP_ADDRESS/glpi</nowiki> and install GLPI by completing the information as appropriate from the web browser.


* Mysql server: ''localhost''
GLPI Installation steps:


* Mysql user: ''root''
{{Note|After select each option, pres "Ok" or "Continue" button.}}


* Mysql password : ''password''
GLPI SETUP


6 - Test of the connection at the database
* Select your language
 
* Licence
Database connection successful
: I have read and ACCEPT the terms of the license written above.
 
* Beginning of the installation - Installation or update of GLPI
* Create a new database or use an existing one: ''glpi''
:* Choose 'Install' for a completely new installation of GLPI.
 
:* Select 'Update' to update your version of GLPI from an earlier version
7 - Database created
* 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
OK - database was initialized
Line 123: Line 88:
Upon first connection you can use the login ''glpi'' and the password ''glpi'' in order to access the application with administrator rights
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''
After click on "continue" you will see ''The installation is finished''.


Congratulations, you installed GLPI!
Congratulations, you installed GLPI!
Line 129: Line 94:
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 <nowiki>http://WEBSERVER_IP_ADDRESS/glpi</nowiki> now
 
 
== Licence ==
 
'''Licence:'''
 
GLPI is a free software distributed under GNU/GPL version 2 licence.
 
The GPL grants the recipients of a computer program the following rights (called freedoms):
 
1. Freedom to run the program, for any desired purpose.
 
2. Freedom to study how the program works, and modify it. (Access to the source code is a precondition for this)
 
3. Freedom to redistribute copies.
 
4. Freedom to improve the program, and release the improvements to the public. (Access to the source code is a precondition for this)
 
GLPI is not a software of the public domain. If you modify GLPI or if you redistribute it, you cannot apply a licence which would contradict GPL licence.


Specified: You are free to use GLPI for any activity which is personal, professional or commercial. Within the framework of a commercial activity, the contract that you associate your provision of services should not interfere with GPL licence attached to GLPI.
[[Category:SQL]]

Latest revision as of 10:11, 17 November 2023

This material is work-in-progress ...

This article needs to be updated with apks for recent versions of PHP that are compatible with glpi-10.0.9
(Last edited by Sertonix on 17 Nov 2023.)

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

Basic Installation

For installing the additional packages first activate community packages and update the package index

Install the required packages:

# apk add lighttpd php82 fcgi php82-cgi

Configure Lighttpd

Edit lighttpd.conf (/etc/lighttpd/lighttpd.conf) and uncomment the line:

Contents of /etc/lighttpd/lighttpd.conf

... include "mod_fastcgi.conf" ...

Edit mod_fastcgi.conf (/etc/lighttpd/mod_fastcgi.conf), find and change /usr/bin/php-cgi to /usr/bin/php-cgi82.

Contents of /etc/lighttpd/mod_fastcgi.conf

... "bin-path" => "/usr/bin/php-cgi82" # php-cgi ...

Start lighttpd service and add it to default runlevel

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

Install Mysql server packages

apk add mysql mysql-client php5-mysql php5-mysqli

Configuring MySql

/usr/bin/mysql_install_db --user=mysql
rc-service mariadb start && rc-update add mariadb 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 https://fossies.org/linux/misc/glpi-10.0.9.tgz/

Unpack and delete tar file

tar zxvf glpi-10.0.9.tgz rm glpi-10.0.9.tgz

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