My linux world » Glpi

Glpi


Prerequiste

I assume that you have a Centos installation.

Installation

You can copy/paste this script and use it to configure automatically your server.

  1. #!/bin/bash
  2.  
  3. echo "install glpi"
  4. dnf -y install glpi*
  5.  
  6. echo "create database glpi, user/password glpi/glpi":
  7. mysql --user=root --password=root -e "CREATE USER 'glpi'@'localhost' IDENTIFIED BY 'glpi';"
  8. mysql --user=root --password=root -e "CREATE DATABASE IF NOT EXISTS glpi;"
  9. mysql --user=root --password=root -e "use glpi; GRANT ALL PRIVILEGES ON glpi.* TO 'glpi'@'localhost' WITH GRANT OPTION;"
  10.  
  11. echo "restart httpd"
  12. systemctl restart httpd.service
  13.  
  14. myip=`hostname -I`
  15. echo "Now meet you here: http://$myip/glpi/"
  16. echo "Note the default user/password is glpi/glpi"
  17.  

That’s all 🙂

Administration – glpi


Copyright © 2023 My linux world - by Marc RABAHI
Design by Marc RABAHI and encelades.

Fork me on GitHub