How to Install Snipe-IT Asset Management Tool on Ubuntu 16.04

By Hitesh Jethva, Alibaba Cloud Tech Share Author. Tech Share is Alibaba Cloud’s incentive program to encourage the sharing of technical knowledge and best practices within the cloud community.

Snipe-IT is a free and open source web application for IT assets management that provides a web-based interface for tracking licenses, accessories, consumables, and components. Snipe-IT comes with beautiful built-in email notifications for users and administrators. It is cross-platform and feature-rich web-based software built using a PHP framework called Laravel. You can keep track of what you own, how something has been deployed, who is working with what desktop, and the details of every server in your data center using Snipe-IT.


  1. Supports Windows, Linux and Mac operating system.
  2. Supports multiple languages and translates into several languages for easy localization.
  3. Integrates with barcode scanners and QR code reader apps.
  4. Supports two-factor authentication with Google Authenticator.
  5. Integrates with LDAP and Active Directory.
  6. Web-based software so it works on any device.
  7. Add your own custom fields for additional asset attributes

In this article, I will explain how to install Snipe-IT asset management system on Alibaba Cloud Elastic Compute Service (ECS) with Ubuntu 16.04.


  1. A fresh Alibaba cloud Ubuntu 16.04 instance with minimum 2GB RAM.
  2. A static IP address is configured on the instance.
  3. A Root password is setup on the server.

Launch Alibaba Cloud ECS Instance

First, log in to your Alibaba Cloud ECS Console. Create a new ECS instance, choosing Ubuntu 16.04 as the operating system with at least 2GB RAM. Connect to your ECS instance and log in as the root user.

Once you are logged into your Ubuntu 16.04 instance, run the following command to update your base system with the latest available packages.

Install LAMP

Snipe-IT requires Apache, MariaDB and PHP installed to your system. First, install Apache and MariaDB with the following command:

Next, you will need to add the PHP repository to your system. You can add it with the following command:

Once the repository is installed, update the repository and install PHP with all the required libraries with the following command:

Once all the packages are installed, you will also modify the php.ini file:

Make the following changes:

Save and close the file. Then start Apache and MariaDB service and enable them to start on boot time with the following command:

Configure MariaDB

By default, MariaDB is not hardened. So you will need to secure it first. You can do this using the mysql_secure_installation script:


Next, log in to MariaDB shell:

Enter your root password, then create a database and user for Snipe-IT:

Next, flush the privileges and exit from the MariaDB shell with the following command:

Download and Install Snipe-IT

First, you will need to download the latest version of the Snipe-IT to your system. You can download it from the GIT repository with the following command:

Next, change the directory to the snipe-it and copy sample .env file:

Next, open .env file and update the database details:

Make the following changes:

Save and close the file.

Next, you will need to install the Composer to your system. The Composer is a dependency manager for PHP. It is used to install dependencies required by PHP. You can install it by just running the following command:

Next, install all the dependencies required by PHP by running the following command:

Once all the dependencies are installed, generate the “APP_Key” with the following command:


Next, populate MySQL with Snipe-IT’s default database schema with the following command:


Next, give proper permissions to the snipe-it directory:

Configure Apache Web Server

Next, you will need to create an Apache virtual host file for Snipe-IT. You can create it with the following command:

Add the following lines:

Save and close the file, then enable Apache virtual host file with the following command:

Next, enable mcrypt, mbstring and rewrite module using the following command:

Finally, restart Apache service to apply all the changes:

Access Snipe-IT Web Installation Wizard

Open your web browser and type the URL You should see the following page:

Make sure all the system requirements are correct. Then, click on the Create Database Table button. You should see the following page:

Next, click on the Create User page. You should see the following page:

Here, provide your Site name, Admin username and password. Then click on the Next button. You should see the following page:

Related Alibaba Cloud Products

Alibaba Cloud ApsaraDB for MongoDB is a secure, reliable, and elastically scalable cloud database service. It currently supports the ReplicaSet and Sharding architectures and can be quickly deployed in just a few steps.

ApsaraDB for MongoDB’s highly available service includes automatic monitoring, backup, and disaster tolerance capabilities. This frees you from time-consuming database management tasks and lets you can focus on your applications and core business.

Website Threat Inspector utilizes data, white hat penetration testing, and machine learning to provide an all-in-one security solution for domains and other online assets. WTI detects web vulnerabilities, illicit content, webpage defacement and backdoors to prevent possible financial loss caused by damage to your brand reputation. Website Threat Inspector comprehensively detects any risks to your website and online assets, such as web vulnerabilities, weak passwords, webpage defacement, and Trojan attacks. The system scans all source code, text, and images for vulnerabilities.


Follow me to keep abreast with the latest technology news, industry insights, and developer trends.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store