Snipe-IT is a free and open source web application for IT assets management. It is written on the Laravel 5.2 framework and uses MySQL to store its data. Snipe-IT is a complete and comprehensive solution for assets management, software license management, and much more.
In this tutorial, you will learn to install Snipe-IT on Ubuntu 16.10.
If you installed Laravel via Composer or the Laravel installer, this key has already been set for you by the php artisan key:generate command. Typically, this string should be 32 characters long. The key can be set in the.env environment file. If you have not copied the.env.example file to a new file named.env, you should do that now. Apr 21, 2017 Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Jan 22, 2016 Doesn't look like the key ever changed so I'm not sure what I may have done. How does the system know an ldap user from a local user. Just looking at the user table it appears that accounts exist for both types.
Prerequisites
- A Vultr Ubuntu 16.10 server instance.
- A sudo user.
Step 1: System update
Before installing any packages on the Ubuntu server instance, it is recommended to update the system. Log in using the sudo user and run the following commands to update the system.
Step 2: Install Apache web server
Install the Apache web server.
Start Apache and enable it to automatically run at boot time.
Step 3: Install PHP 5.6
Snipe-IT is compatible with any version of PHP greater than 5.5.9. Since PHP 5.5 has reached end of life, you can install PHP 7. Run the following command to install PHP 7 with the modules required by Snipe-IT.
Step 4: Install MariaDB
MariaDB is a fork of MySQL. Install it using following command.
Start MariaDB and enable it to automatically start at boot time.
Secure your MariaDB installation.
You will be asked for the current MariaDB root password. As we have just installed MariaDB, its root password has not been set. Press the enter
key to proceed. Set a strong root password for your MariaDB server and answer Y
to all of the other questions asked. The questions asked are self explanatory.
Step 5: Create database for Snipe-IT
Log into the MariaDB shell as its root user using the following command.
Provide the password for the MariaDB root user.
Run the following queries to create a database and a database user for Snipe-IT.
Make sure that you use a semicolon at the end of each query above. You can replace the database name 'snipeit_data
' and username 'snipeit_user
' according to your needs. Be sure to change 'StrongPassword
' to a very strong password.
Step 6: Install Composer
Install Composer using the following command. Composer is a dependency manager for PHP.
Step 7: Install Snipe-IT
First, install Git.
Switch to Apache's web-root folder and clone the latest version of Snipe-IT.
Create the .env
file from example file provided.
Edit the .env
file.
Find the following lines and edit the values according to instructions provided.
Leave the default values for all of the other parameters. Save the file and exit the text editor.
Provide the appropriate ownership and file permissions.
Install PHP dependencies using Composer.
Generate the 'APP_Key
'.
Step 8: Create virtual host
Run the following command to create a virtual host for your Snipe-IT site.
Add the following lines into the file, then save the file.
Activate the configuration and enable mod_rewrite
using the following commands.
Restart Apache.
Step 9: Finish installation
Your Snipe-IT installation is now complete. You can finish configuring Snipe-IT through your web browser. Navigate to the following link, replacing snipeit.example.com
with the IP address of your Vultr VPS.
Thank you for reading. This concludes the tutorial.
Sponsor
Apr 21, 2017