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

  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

Requirements

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

Launch Alibaba Cloud ECS Instance

apt-get update -y

Install LAMP

apt-get install apache2 mariadb-server -y
apt-get install software-properties-common -y
add-apt-repository ppa:ondrej/php
apt-get install apache2 libapache2-mod-php7.2 php7.2 php7.2-pdo php7.2-mbstring php7.2-tokenizer php7.2-curl php7.2-mysql php7.2-ldap php7.2-zip php7.2-fileinfo php7.2-gd php7.2-dom php7.2-mcrypt php7.2-bcmath -y
nano /etc/php/7.2/apache2/php.ini
memory_limit = 256M
upload_max_filesize = 200M
max_execution_time = 360
date.timezone = Asia/Kolkata
systemctl start apache2
systemctl start mysql
systemctl enable apache2
systemctl enable mysql

Configure MariaDB

mysql_secure_installation
Set root password? [Y/n] n
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
mysql -u root -p
MariaDB [(none)]> CREATE DATABASE snipeit_db character set utf8;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON snipeit_db.* TO 'snipeit_user'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> quit

Download and Install Snipe-IT

cd /var/www/html/
git clone https://github.com/snipe/snipe-it snipe-it
cd /var/www/html/snipe-it
cp .env.example .env
nano .env
# --------------------------------------------
# REQUIRED: DATABASE SETTINGS
# --------------------------------------------
DB_CONNECTION=mysql
DB_HOST=localhost
DB_DATABASE=snipeit_db
DB_USERNAME=snipeit_user
DB_PASSWORD=password
DB_PREFIX=null
DB_DUMP_PATH='/usr/bin'
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
composer install --no-dev --prefer-source
php artisan key:generate
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> yes
Application key [base64:Ui3UGJG6QXyb+ary9K34qdohTC63vD8cKx5uetPfjVU=] set successfully.
php artisan migrate
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> yes
Migration table created successfully.
chown -R www-data:www-data /var/www/html/snipe-it
chmod -R 755 /var/www/html/snipe-it

Configure Apache Web Server

nano /etc/apache2/sites-available/snipeit.conf
<VirtualHost *:80>
ServerAdmin webmaster@your-domain.com
<Directory /var/www/html/snipe-it/public>
Require all granted
AllowOverride All
</Directory>
DocumentRoot /var/www/html/snipe-it/public
ServerName your-domain.com
ErrorLog /var/log/apache2/snipeIT.error.log
CustomLog /var/log/apache2/snipeIT.access.log combined
</VirtualHost>
a2ensite snipeit.conf
phpenmod mcrypt
phpenmod mbstring
a2enmod rewrite
systemctl restart apache2

Access Snipe-IT Web Installation Wizard

Related Alibaba Cloud Products

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Playkey DevLog. Issue 44

2D Game Development: Creating Projectiles

Module Oriented Architecture — Part 2: Routing and Modules

A Brief Overview of Bluetooth Low Energy

Routing With Zenbasket

How to Work With Dates in Python

AWS Time-series database Integration with Grafana

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
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

Automate Kubernetes Cluster Using Ansible

The idea behind Docker and Linux containers

Cloudwatch alarms for memory and disk for AWS Ec2 using Terraform

Cara Install Let’s Encrypt dengan Apache di Ubuntu 20.04 / Debian 11 / Linux Mint

Cara Install Let's Encrypt dengan Apache di Ubuntu 20.04 / Debian 11 / Linux Mint