Glpi: Difference between revisions
m (udpated to use lighttpd template) |
m (minor layout changes) |
||
Line 21: | Line 21: | ||
Install extra packages | Install extra packages | ||
{{Cmd|apk add mysql mysql-client php-mysql php-mysqli}} | |||
== Configuring MySql == | == Configuring MySql == | ||
Line 33: | Line 33: | ||
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. | ||
{{Cmd|mysql -u root -p}} | |||
{{Cmd|CREATE DATABASE glpi; | |||
GRANT ALL PRIVILEGES ON glpi.* TO "root"; | |||
FLUSH PRIVILEGES; | |||
EXIT}} | |||
== Installing GLPI == | == Installing GLPI == | ||
Line 46: | Line 46: | ||
Make webapps folder | Make webapps folder | ||
{{Cmd|mkdir /usr/share/webapps/ -p}} | |||
Download | Download | ||
{{Cmd|cd /usr/share/webapps/ | |||
wget http://www.sfr-fresh.com/unix/misc/glpi-0.72.4.tar}} | |||
Unpack and delete tar file | Unpack and delete tar file | ||
{{Cmd|tar xvf glpi-0.72.4.tar | |||
rm glpi-0.72.4.tar}} | |||
Change Folder Persmissions | Change Folder Persmissions | ||
{{Cmd|chmod -R 777 /usr/share/webapps/glpi/}} | |||
Make symlinks to GLPI | Make symlinks to GLPI | ||
{{Cmd|ln -s /usr/share/webapps/glpi/ /var/www/localhost/htdocs/glpi}} | |||
== Configuring GLPI == | == Configuring GLPI == | ||
Line 72: | Line 72: | ||
GLPI Installation steps: | GLPI Installation steps: | ||
Note | {{Note|After select each option, pres "Ok" or "Continue" button.}} | ||
GLPI SETUP | 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 ? | |||
* Choose 'Install' for a completely new installation of GLPI. | * Database connection setup | ||
* Select 'Update' to update your version of GLPI from an earlier version | :* Mysql server: ''localhost'' | ||
:* Mysql user: ''root'' | |||
:* Mysql password : ''password'' | |||
* Test of the connection at the database | |||
* Continue ? | : Database connection successful | ||
: Create a new database or use an existing one: ''glpi'' | |||
* Database created | |||
* Mysql server: ''localhost'' | |||
* Mysql user: ''root'' | |||
* Mysql password : ''password'' | |||
Database connection successful | |||
OK - database was initialized | OK - database was initialized | ||
Line 111: | Line 97: | ||
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 118: | Line 104: | ||
You have GLPI system working, to access go to http://WEBSERVER_IP_ADDRESS/glpi and enjoy! | You have GLPI system working, to access go to http://WEBSERVER_IP_ADDRESS/glpi and enjoy! | ||
Revision as of 09:55, 24 June 2011
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.
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.
Set up GLPI on Alpine Linux
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
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
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
Start lighttpd
service and add it to default runlevel
# rc-service lighttpd start # rc-update add lighttpd default
Install extra 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
Install GLPI
Make webapps folder
mkdir /usr/share/webapps/ -p
Download
cd /usr/share/webapps/ wget http://www.sfr-fresh.com/unix/misc/glpi-0.72.4.tar
Unpack and delete tar file
tar xvf glpi-0.72.4.tar rm glpi-0.72.4.tar
Change Folder Persmissions
chmod -R 777 /usr/share/webapps/glpi/
Make symlinks to GLPI
ln -s /usr/share/webapps/glpi/ /var/www/localhost/htdocs/glpi
Configuring GLPI
Browse to: http://WEBSERVER_IP_ADDRESS/glpi and Install GLPI completing the information as appropriate from the web browser.
GLPI Installation steps:
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.
You have GLPI system working, to access go to http://WEBSERVER_IP_ADDRESS/glpi and enjoy!