ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Install GLPI on Fedora 26 Minimal

    IT Discussion
    glpi
    6
    12
    4.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • black3dynamiteB
      black3dynamite
      last edited by black3dynamite

      GLPI is a free IT and Asset Management Software.

      http://glpi-project.org/en/
      https://github.com/glpi-project/glpi

      sudo dnf -y install nano wget policycoreutils-python-utils git unzip httpd mariadb mariadb-server php php-mysqlnd php-gd php-mbstring php-ldap php-imap php-xml php-xmlrpc php-opcache php-pecl-apcu-bc
      
      sudo systemctl enable httpd mariadb
      sudo systemctl start httpd mariadb
      
      CHANGE THE DEFAULT PASSWORD OF GLPIUSERPW AND SOMESECUREROOTPASSWORD TO SOMETHING PRIVATE
      #Create a database and a user to access it.
      sudo mysql -e "CREATE DATABASE glpidb;"
      sudo mysql -e "CREATE USER 'glpiuser'@'localhost' IDENTIFIED BY 'glpiuserpw';"
      sudo mysql -e "GRANT ALL ON glpidb.* TO 'glpiuser'@'localhost';"
      sudo mysql -e "FLUSH PRIVILEGES;"
      
      #Secure mariadb. These commands do what mysql_secure_installation does interactively
      sudo mysql -e "UPDATE mysql.user SET Password=PASSWORD('somesecurerootpassword') WHERE User='root';"
      sudo mysql -e "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');"
      sudo mysql -e "DELETE FROM mysql.user WHERE User='';"
      sudo mysql -e "DROP DATABASE test;"
      sudo mysql -e "FLUSH PRIVILEGES;"
      

      Configure web server

      sudo tee /etc/httpd/conf.d/glpi.example.com.conf <<EOF
      <VirtualHost *:80>
          ServerAdmin webmaster@localhost
            <Directory /var/www/html/glpi>
              Require all granted
              AllowOverride All
              Options +Indexes
            </Directory>
          DocumentRoot /var/www/html/glpi
          ServerName glpi.example.com
          ErrorLog /var/log/httpd/glpi.error.log
          CustomLog /var/log/httpd/access.log combined
      </VirtualHost>
      EOF
      

      Installing GLPI using Git

      sudo git clone https://github.com/glpi-project/glpi.git /var/www/html/glpi
      cd /var/www/html/glpi
      sudo wget https://getcomposer.org/composer.phar
      sudo php composer.phar install --no-dev
      sudo chown -R apache:apache /var/www/html/glpi
      

      Configure SELinux permissions

      sudo semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/glpi(/.*)?'
      sudo restorecon -R /var/www/html/glpi
      sudo setsebool -P httpd_can_network_connect on
      sudo setsebool -P httpd_can_network_connect_db on
      sudo setsebool -P httpd_can_sendmail on
      sudo setsebool -P httpd_can_connect_ldap on
      

      Restart services and configure firewall

      sudo systemctl restart httpd mariadb
      sudo firewall-cmd --zone=public --add-service=http --permanent
      sudo firewall-cmd --reload
      

      Now its time to configure GLPI from a web browser
      http://glpi.example.com/ or http://ip-address/

      By default you are provided with four accounts: glpi, post-only, tech and normal
      glpi is the super-admin account

      User name: glpi
      Password: glpi

      post-only is the self-service account

      User name: post-only
      Password: postonly

      tech is the technician account

      User name: tech
      Password: tech

      normal is the observer account

      User name: normal
      Password: normal

      JaredBuschJ 2 Replies Last reply Reply Quote 3
      • mlnewsM
        mlnews
        last edited by

        Any screenshots of the final web interface?

        Emad RE 1 Reply Last reply Reply Quote 0
        • black3dynamiteB
          black3dynamite
          last edited by

          Login Screen
          http://i.imgur.com/PWKsoYL.png

          1 Reply Last reply Reply Quote 1
          • black3dynamiteB
            black3dynamite
            last edited by

            Home Page for the glpi account
            http://i.imgur.com/NerNVPY.png

            1 Reply Last reply Reply Quote 1
            • black3dynamiteB
              black3dynamite
              last edited by

              Home page for the post-only account
              http://i.imgur.com/z6bWAwq.png

              1 Reply Last reply Reply Quote 1
              • JaredBuschJ
                JaredBusch @black3dynamite
                last edited by JaredBusch

                @black3dynamite said in Install GLPI on Fedora 26 Minimal:

                sudo mysql_secure_installation
                

                Create GLPI database

                mysql -u root -p
                create database glpidb;
                create user glpiuser;
                grant all on glpidb.* to 'glpiuser'@'localhost' identified by 'glpiuserpw';
                flush privileges;
                exit
                

                Don't do it that way. It makes thing more prone to user error.

                This is a better way to handle it with minimal user interaction on the command line.

                Use big bold print (you can use a ### on a new line to make it a title/supersize) to tell the user to change these values from your default example. Like this:

                Change the default password of glpiuserpw and somesecurerootpassword to something private

                #Create a database and a user to access it.
                mysql -e "CREATE DATABASE glpidb;"
                mysql -e "CREATE USER 'glpiuser'@'localhost' IDENTIFIED BY 'glpiuserpw';"
                mysql -e "GRANT ALL ON glpidb.* TO 'glpiuser'@'localhost';"
                mysql -e "FLUSH PRIVILEGES;"
                
                #Secure mariadb. These commands do what mysql_secure_installation does interactively
                mysql -e "UPDATE mysql.user SET Password=PASSWORD('somesecurerootpassword') WHERE User='root';"
                mysql -e "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');"
                mysql -e "DELETE FROM mysql.user WHERE User='';"
                mysql -e "DROP DATABASE test;"
                mysql -e "FLUSH PRIVILEGES;"
                
                1 Reply Last reply Reply Quote 2
                • JaredBuschJ
                  JaredBusch @black3dynamite
                  last edited by JaredBusch

                  @black3dynamite said in Install GLPI on Fedora 26 Minimal:

                  You can manually download the tarball packages or use git (I preferred using git)
                  Using tarball packages

                  cd /tmp
                  wget https://github.com/glpi-project/glpi/releases/download/9.1.6/glpi-9.1.6.tgz
                  tar -zxvf glpi-9.1.6.tgz
                  sudo cp -rp glpi /var/www/html/glpi
                  sudo chown -R apache:apache /var/www/html/glpi
                  cd /var/www/html/glpi
                  

                  -OR-

                  Using git

                  sudo git clone https://github.com/glpi-project/glpi.git /var/www/html/glpi
                  cd /var/www/html/glpi
                  sudo wget https://getcomposer.org/composer.phar
                  sudo php composer.phar install --no-dev
                  sudo chown -R apache:apache /var/www/html/glpi
                  

                  Does GLPI provide an in application updater? If not, don't even provide instruction for something like a tarball when there is a git repository choice. Git can be updated simply but tarball downloads require users to interact too much and break things. Always.

                  If a user doesn't like git and is smart enough to think that deeply, they can find the alternate instructions on their own on the developer's website.

                  1 Reply Last reply Reply Quote 3
                  • Emad RE
                    Emad R @mlnews
                    last edited by

                    @mlnews said in Install GLPI on Fedora 26 Minimal:

                    Any screenshots of the final web interface?

                    http://demo.glpi-project.org/

                    1 Reply Last reply Reply Quote 2
                    • black3dynamiteB
                      black3dynamite
                      last edited by

                      Based on @JaredBusch comments, I've modified the instructions about installing glpi using git and setting up the database.
                      Thanks, @JaredBusch

                      JaredBuschJ 1 Reply Last reply Reply Quote 2
                      • JaredBuschJ
                        JaredBusch @black3dynamite
                        last edited by JaredBusch

                        @black3dynamite said in Install GLPI on Fedora 26 Minimal:

                        Based on @JaredBusch comments, I've modified the instructions about installing glpi using git and setting up the database.
                        Thanks, @JaredBusch

                        Just a bit of experience talking after posting so many guides here.

                        1 Reply Last reply Reply Quote 1
                        • dafyreD
                          dafyre
                          last edited by

                          Does GLPI still do Helpdesk stuff too? We used it at my last job for a while, it wasn't terrible, but require d a little more clicking around, IIRC.

                          DustinB3403D 1 Reply Last reply Reply Quote 0
                          • DustinB3403D
                            DustinB3403 @dafyre
                            last edited by

                            @dafyre said in Install GLPI on Fedora 26 Minimal:

                            Does GLPI still do Helpdesk stuff too? We used it at my last job for a while, it wasn't terrible, but require d a little more clicking around, IIRC.

                            It appears to have a help desk built in.

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post