How to Install & Enable Plugins in GLPI
What are GLPI Plugins?:
GLPI-Plugins are extra features, offered for free that are built by companies or developers that can add new or enhanced features to GLPI. These plugins span across a wide range of categories and improvement sets. Some of my favorite ones, would include OCSng, PDF, and the Dashboard plugins. Each one of these plugins opens up a whole new way to use and see GLPI.
Goal of this Article:?
In this article, my goal is to go over how to install & enable plugins in GLPI. This will be a very basic configuration as just to give you a proof of concept. To learn more about GLPI plugins please check back later, as I plan on making a lot more articles on the ins and outs of GLPI plugins and their management.
- Please Note:
- I take a few extra steps when it comes to installing plugins, as I found this to be the best way for keeping track of them in GLPI. If you want the short and sweet version for installing plugins check out this link here.
To start you will need to open an ssh session to your CentOS 7 machine, if you are on windows you can use putty to achieve this. Once you are logged into your system run the following commands:
The reason we are creating a GLPI folder for plugins is because this will give you a place to stage and organize your GLPI plugins. We will be doing this as some GLPI plugins will be called “X” but when you extract the plugin it will be called “Z”. Afterwards when you go to install & enable the plugin it will be confusing as to which one you are turning on. It will also come in handy later when comes time to upgrade a plugin.
Open up a web browser and head to GLPI’s plugin site. Once you are on the website, search for a plugin that you would like to install and copy the web address. In this example I will be installing the popular “PDF” plugin created by Remi ColletNelly & Mahu-Lasson.
- Please take note of the plugins compatibility as some plugins will only work with certain versions of GLPI.
Once you have copied the plugins web address, head back over to your SSH session and run the following commands.
tar -xvf glpi-pdf-1.4.0.tar.gz
Install & Enable Plugins:
Now that you have the plugin extracted, you will need to copy the extract folder to GLPI’s plugin directory.
cp -R pdf /var/www/html/glpi/plugins
In a web browser go to your GLPI site, and select the “Setup” drop down and choose “Plugins”. You will now see the “PDF” plugin as an option to install. Select the “Install” option to install the plugin and once the page refreshes, you will need to select the “enable” option to turn the plugin on.
After this your will now have a working “PDF” plugin to use in GLPI. To see what options you can set on the plugin you can select the plugins name in the far left column. This will take you to the plugins options page, to where you can start editing and tweaking settings to fit you needs.
Thank you for taking the time to read this article, I hope that it was helpful in some way to you. If you noticed anything wrong or have a better way of doing this please don’t hesitate to comment below or send me a email. Thank you!