Install GLPI on Fedora 26 Minimal



  • GLPI is a free IT and Asset Management Software.

    http://glpi-project.org/spip.php?lang=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 [email protected]
          <Directory /var/www/html/glpi>
            Allow From All
            AllowOverride All
            Options +Indexes
          </Directory>
        DocumentRoot /var/www/html/glpi
        ServerName glpi.example.com
        ErrorLog /var/log/httpd/glpi.error.log
        CustomLog /var/log/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



  • Any screenshots of the final web interface?



  • Login Screen
    PWKsoYL.png



  • Home Page for the glpi account
    NerNVPY.png



  • Home page for the post-only account
    z6bWAwq.png


  • Service Provider

    @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;"
    

  • Service Provider

    @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.



  • @mlnews said in Install GLPI on Fedora 26 Minimal:

    Any screenshots of the final web interface?

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



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


  • Service Provider

    @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.



  • 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.



  • @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.


Log in to reply
 

Looks like your connection to MangoLassi was lost, please wait while we try to reconnect.