Installation of GLPI and OCS InventoryNG Plugin

GLPI and OCS InventoryNG Plugin

In this post, we are going to install and configure GLPI and OCS InventoryNG Plugin.

If you want to know more about the GLPI and OCS then read below realted post.

Step 1 : Download the GLPI Version 0.85.4 from this link.

  • cd /opt/
  • wget https://forge.glpi-project.org/attachments/download/2020/glpi-0.85.4.tar.gz [Wget download the package on your server]
  • tar -xvf glpi-0.85.4.tar.gz

Learn more about the tar command.

Step 2 : Now we need to configure apache webserver which is help to open GLPI Panel in browser.

  • cd /etc/apache2/sites-available/
  • vim glpi.testsever.com.conf

Add below configuration under the conf file.Do remember to change ServerName with your glpi domain name.

 {virtualhost *:80} [use greater than less than sign instead of {}]

       ServerAdmin sysadmin@test.com

       ServerName glpi.testserver.com

        {DocumentRoot /opt/glpi}       

               Options -Indexes

               AllowOverride All

               Order allow,deny

               allow from all

               Require all granted

       {/DocumentRoot} 

       ErrorLog ${APACHE_LOG_DIR}/glpi_error.log

       LogLevel warn

       CustomLog ${APACHE_LOG_DIR}/glpi_access.log combined

 {/virtualhost}

  • cd /etc/apache2/sites-enabled/
  • ln -s /etc/apache2/sites-available/glpi.com.conf [symlink to activate or enable conf file]

Step 3: Give appropriate permission to your docroot so you won't face any issues. Use below permission for your files and directories.

  • cd /opt/
  • chown -R www-data. glpi
  • cd /opt/glpi/
  • find -type d -exec chmod 775 {} ;
  • find -type f -exec chmod 664 {} ;

Learn more about the File Permissions read below related post.

Installation process at server end is done.

Now  we will be configuring the GLPI by accessing GLPI panel in browser mode.

If your using Local setup then make sure to put servername with local ip in /etc/hosts file or you can directly access glpi by hitting local ip address.

HIT Link :-

  • http://glpi.testserver.com/ [local entry]

        OR

  • http://localhost/

 

Please refer below screenshots to configure GLPI.

  • After hitting url or localhost in browser, it will provide you glpi setup page. Select your language click on "OK".
screenshot1
  •   check radio button on "I Agree" and then click "Continue".
glpi-agreement-page
  • Next it will give you option to upgrade or install but do not upgrade the glpi, Click on "Install". 
glpi-install
  • After clicked on install button, it will shows you GLPI compatibility page which means it will check all dependencies for glpi are fulfilled or  not. If any thing is missing on server please install and click on "Continue".   
glpi-compatibility
  • Now fill your database details with username and password and click on "Continue".
glpi-mysql-details
  • Now go to the last option which allows you to create new database for GLPI. Enter your database name and click on "Continue".
glpi-database
  • After successful configuration glpi will be provide you Login details of GLPI. Save these details somewhere and click on "Use GLPI".
  • Now you will get the GLPI Login page use default glpi/glpi username,password.
glpi-login-details
glpi-login-page

Now we will see the installation of OCS InventoryNG Plugin which is help to connect OCS Server and fetch the inventory information on glpi.

  • Download the "glpi-ocsinventoryng-1.1.1" and extract it under the /opt and then move the directory to /opt/glpi/plugins.
  • Follow below steps :

 

  • cd /opt/
  • wget https://forge.glpi-project.org/attachments/download/1975/glpi-ocsinventoryng-1.1.1.tar.gz
  • tar  -xvf glpi-ocsinventoryng-1.1.1.tar.gz
  • mv ocsinventoryng-master ocsinventoryng
  • mv ocsinventoryng /opt/glpi/plugins/
  • cd /opt/glpi/plugins/
  • chown -R www-data.www-data ocsinventoryng
  • /etc/init.d/apache2 reload

Please refere below screenshot for configuring OCS ng under glpi.

  • Login to glpi and go to the "setup->plugin" then you will see the ocs inventory plugin just click on install and then click on Enable.
  • That's it your ocs plugin is enable now.
glpi-plugin

That's it now you have your own GLPI Server.

Now check out our next step in below post i.e. OCS Server installation and configuration.

I hope you like the post if you have any queries comment down below under the comment box.

Leave a Reply

Your email address will not be published. Required fields are marked *