
Snipe-IT is an open-source Information Technology asset management tool that works on a Linux, Apache, MySQL, and PHP (LAMP) stack. With a powerful and user-friendly interface, Snipe-IT eliminates the need for complex IT asset tracking spreadsheets.
Thousands of customers use this free web-based application, and its code-base is updated frequently to fix bugs and improve reliability. If you run an IT department, you can use Snipe-IT to track the staff members assigned to computer hardware, accessories, and consumables. In addition, you can audit warranty and license information for all your IT components.
This guide explains how to install Snipe-IT on Ubuntu 20.04 server.
To follow this tutorial, you need:
A domain name such as example.com is optional.
SSH to your server as a non-root sudo user, update your software information index, and upgrade the installed packages.
Enable Apache's mod_rewrite module. Snipe-IT requires this extension to rewrite URLs more cleanly.
Install the PHP extensions required by both the Snipe-IT application and a PHP Composer tool.
Restart your Apache web server to apply the changes.
Set up PHP Composer, which is a PHP dependency management tool to install and update libraries in your Snipe-IT environment.
Navigate to your home directory.
Download the Composer installer.
Move the composer.phar executable to /usr/local/bin/.
Snipe-IT uses MySQL/MariaDB for data storage. To create the database, log in to your MySQL/MariaDB server as a root user.
When prompted, enter your root password for your MySQL/MariaDB server and press Enter to proceed.
Create a snipe_it database. To access the snipe_it database, Snipe-IT requires a dedicated non-root MySQL user. Therefore, you must set up a snipe_it_user with full privileges to the snipe_it database. You'll require these database credentials later when setting up the Snipe-IT .env configuration file.
Replace EXAMPLE_PASSWORD with a strong password.
If your LAMP stack uses MySQL, run these commands.
If your LAMP stack uses MariaDB, run these commands.
Navigate to the root directory of your web server.
Use git to clone the latest Snipe-IT repository from the https://github.com/snipe/snipe-it URL and copy the downloaded files to a snipe-it directory.
Switch to the snipe-it directory.
Snipe-IT ships with a sample configuration file. Copy it to /var/www/snipe-it/.env.
Edit the configuration file.
In the Snipe-IT configuration file, locate these settings.
Set APP_URL to your server's Fully Qualified Domain Name, or it's public IP address. If you use a time zone other than UTC, change the timezone to a PHP-supported timezone, and enclose it in single quotes.
Locate these settings.
Change those values to the database information you set up in Step 3.
Save and close the file.
Set the correct ownership and permission for the Snipe-IT data directory.
Install the unzip tool to avoid unpacking zip files using the PHP zip extensions, which might trigger some errors.
Install the Snipe-IT dependencies with Composer. You'll receive a warning not to run this as root on each command. It's okay to continue as root for the Snipe-IT install, so type yes and hit Enter.
Once the Composer finishes running, generate a Laravel APP_Key value in the /var/www/snipe-it/.env configuration file you created earlier. Type yes and hit Enter when prompted to continue.
Apache comes with a default virtual host file named 000-default.conf. To make troubleshooting easier, disable the default Apache configuration file and create a new Apache configuration file for Snipe-IT.
Disable the default Apache configuration file.
Create a new Apache configuration file.
Paste the information below and replace example.com with your server's domain name or public IP address.
Save and exit the file.
Enable your new configuration file.
Restart your Apache web server to apply the changes.
In a web browser, visit your server using its domain name or public IP address. Follow the prompts on the setup wizard to complete the installation. When finished, you should see the dashboard.
In this guide, you've installed the Snipe-IT asset management tool on your Ubuntu 20.04 server. Use the cloud-based application to manage your IT resources in your organization.
0 Comments
Be the first to comment and share your perspective with the community.