{"id":17199,"date":"2016-01-05T14:49:14","date_gmt":"2016-01-05T20:49:14","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17199"},"modified":"2022-12-15T09:58:07","modified_gmt":"2022-12-15T15:58:07","slug":"install-glpi-on-debian-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-glpi-on-debian-7\/","title":{"rendered":"Install GLPI on Debian 7"},"content":{"rendered":"
In this article we will show you how to install GLPI with Apache, PHP and MySQL on a Debian 7 VPS<\/a>. GLPI is an IT software management package developed in PHP. It offers many functionalities one of which is to build up a database with an inventory for your company (computer, monitors, software, printers…).<\/p>\n GLPI has enhanced functions to make the daily life for the administrators easier, like a job-tracking-system with mail-notification and methods to build a database with basic information about your network-topology.<\/p>\n Below are the functions of this application:<\/p>\n Log in to your Linux VPS<\/a> as user root and first of all make sure that all packages are up to date:<\/p>\n The following command will install the Apache web server.<\/p>\n Enable Apache to start up on boot:<\/p>\n Next, you need to install PHP and some needed extra packages. Enter the following:<\/p>\n Good. We already have an active Apache and PHP installation. Now, let’s install MySQL:<\/p>\n If you somehow didn’t setup a root password when prompted during the installation of MySQL you can fix that with the the post-installation script \u2018mysql_secure_installation\u2019 in order to set a root password:<\/p>\n Once you configured your MySQL root password, create a database needed for the GLPI installation. Enter MySQL console as root:<\/p>\n In this article we are using the \/opt directory for the location in which GLPI will be downloaded. Of course you can download it to a location of your choice.<\/p>\n At the time of writing of this tutorial, the latest stable GLPI version is 0.85.4. The download will start after the execution of the below command:<\/p>\n Let\u2019s unpack the downloaded archive to the Apache\u2019s document root. If you don’t know how to find Apache’s default document root, run:<\/p>\n Output:<\/p>\n Unpack the archive into Apache’s document root directory:<\/p>\n Set the correct permissions so you can proceed with the installation:<\/p>\n Now start the GLPI installation by opening your favorite web browser and navigating to http:\/\/your_server_ip\/glpi. Enter the credentials of the MySQL database you already created and finish the installation. You should get the following info which means that you have successfully installed GLPI.<\/p>\n For security reason, delete the install.php file using the following command:<\/p>\n You will be welcomed by the login page:<\/p>\n <\/p>\n After you log in, change the password according to your needs. For more information, check GLPI official documentation.<\/p>\n Congratulations, you have successfully installed GLPI on a Debian 7 VPS.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install GLPI<\/strong> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS<\/span>.<\/strong> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" In this article we will show you how to install GLPI with Apache, PHP and MySQL on a Debian 7 … <\/p>\n\n
UPDATE THE SYSTEM<\/strong><\/h5>\n
# apt-get update && apt-get upgrade -y<\/pre>\n
INSTALL APACHE<\/strong><\/h5>\n
# apt-get install apache2<\/pre>\n
# update-rc.d apache2 enable<\/pre>\n
INSTALL PHP<\/strong><\/h5>\n
# apt-get install php5 libapache2-mod-php5 php5-mysql php5-gd<\/pre>\n
INSTALL MYSQL<\/strong><\/h5>\n
# apt-get install mysql-server<\/pre>\n
# mysql_secure_installation\r\n\r\n- Set root password? [Y\/n] y\r\n- Remove anonymous users? [Y\/n] y\r\n- Disallow root login remotely? [Y\/n] y\r\n- Remove test database and access to it? [Y\/n] y\r\n- Reload privilege tables now? [Y\/n] y<\/pre>\n
mysql> create database glpi;\r\n\r\nmysql> grant all privileges on glpi.* to 'glpiusr'@'localhost' identified by 'your_password';\r\n\r\nmysql> flush privileges;\r\n\r\nmysql> exit<\/pre>\n
INSTALL GLPI<\/strong><\/h5>\n
# cd \/opt<\/pre>\n
# wget https:\/\/forge.indepnet.net\/attachments\/download\/2020\/glpi-0.85.4.tar.gz<\/pre>\n
# grep DocumentRoot grep DocumentRoot \/etc\/apache2\/sites-available\/default<\/pre>\n
DocumentRoot \/var\/www<\/pre>\n
# tar -xvzf glpi-0.85.4.tar.gz\u00a0 -C\u00a0 \/var\/www\/\r\n\r\n# cd \/var\/www\/glpi\/<\/pre>\n
# chmod -R 777 config\/\r\n# chmod -R 777 files\/<\/pre>\n
Default logins \/ passwords are:\r\n\r\nglpi\/glpi for the administrator account\r\ntech\/tech for the technician account\r\nnormal\/normal for the normal account\r\npost-only\/postonly for the postonly account\r\nYou can delete or modify these accounts as well as the initial data.<\/pre>\n
# rm install\/install.php<\/pre>\n