Log inSign up

Track IT assets with your own Snipe-IT server

Install Nginx, MariaDB, PHP-FPM with the required extensions and Composer, clone Snipe-IT into /var/www/snipe-it, fill in .env, run composer install --no-dev and php artisan key:generate, then point Nginx at the public folder. Add a Certbot certificate, open /setup to create the tables and admin user, and schedule php artisan schedule:run every minute.

Topic: Self-hosted apps · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13 · Updated 2026-12-03

What does Snipe-IT need?

Snipe-IT is a Laravel application for asset management: laptops, phones, licences, accessories and consumables, with check-out to people and locations, audit dates and history. It runs on a standard PHP stack.

  • System: Ubuntu 24.04 (PHP 8.3) or Debian 12 or 13 (PHP 8.2 or 8.4). Ubuntu 22.04 ships PHP 8.1, which is below the minimum of current releases; check the requirements page of the version you install.
  • Memory: 1 GB works for a small office; 2 GB makes Composer runs and large imports comfortable.
  • DNS: a name such as assets.example.net.

Background on the stack is in the LEMP stack guide and the Composer guide.

How do you install the packages?

Everything comes from the distribution archive. The unversioned PHP names pick the right release for your system.

sudo apt update
sudo apt install -y nginx mariadb-server git unzip composer \
  php-fpm php-cli php-mysql php-bcmath php-curl php-gd php-intl \
  php-ldap php-mbstring php-xml php-zip
php -v
composer --version
ls /run/php/

Note the FPM socket name printed by the last line (for example php8.3-fpm.sock); the Nginx config uses it.

How do you create the database?

Secure MariaDB, then create an empty database and a dedicated user.

sudo mariadb-secure-installation
sudo mariadb
CREATE DATABASE snipeit CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'snipeit'@'localhost' IDENTIFIED BY 'Long-Random-Password';
GRANT ALL PRIVILEGES ON snipeit.* TO 'snipeit'@'localhost';
FLUSH PRIVILEGES;
EXIT;

More on accounts and grants is in the MariaDB guide.

How do you download and configure Snipe-IT?

Clone the repository, hand ownership to your user with the web group, and create the environment file.

sudo git clone https://github.com/grokability/snipe-it /var/www/snipe-it
sudo chown -R $USER:www-data /var/www/snipe-it
cd /var/www/snipe-it
git checkout $(git describe --tags --abbrev=0)
cp .env.example .env
nano .env

Set these values:

APP_URL=https://assets.example.net
APP_TIMEZONE=UTC
APP_LOCALE=en-US
DB_DATABASE=snipeit
DB_USERNAME=snipeit
DB_PASSWORD=Long-Random-Password

Checking out the latest tag pins you to a release instead of a moving branch. Then install dependencies, create the key and give the web server write access to the folders that need it:

composer install --no-dev --prefer-dist --optimize-autoloader
php artisan key:generate
sudo chmod -R 775 storage public/uploads bootstrap/cache
sudo chgrp -R www-data storage public/uploads bootstrap/cache

What does the Nginx configuration look like?

Serve the public folder and pass PHP to FPM. Save as /etc/nginx/sites-available/snipe-it and adjust the socket:

server {
    listen 80;
    listen [::]:80;
    server_name assets.example.net;
    root /var/www/snipe-it/public;
    index index.php;
    client_max_body_size 50M;
    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php8.3-fpm.sock;
    }
    location ~ /\.(?!well-known) {
        deny all;
    }
}
sudo ln -s /etc/nginx/sites-available/snipe-it /etc/nginx/sites-enabled/
sudo rm -f /etc/nginx/sites-enabled/default
sudo nginx -t && sudo systemctl reload nginx
sudo apt install -y certbot python3-certbot-nginx
sudo certbot --nginx -d assets.example.net
sudo ufw allow 'Nginx Full'

The last rule opens ports 80 and 443. The Certbot guide explains renewal checks.

How do you finish the web setup?

Open https://assets.example.net/setup. The pre-flight page checks the URL, database connection, folder permissions and mail; fix anything red before continuing. Next it creates the tables, and finally asks for the site name, default currency, and the first admin account. After that, sign in and walk through Settings: set the asset tag prefix, enable two-factor authentication for admins, and define status labels and categories before importing data.

Import existing spreadsheets from Import with CSV files; Snipe-IT maps columns to fields and reports rows it could not match.

How do you set up mail and the scheduler?

Snipe-IT emails check-out receipts, expiring licence warnings and audit reminders. Configure an authenticated relay on port 587 in .env:

MAIL_MAILER=smtp
MAIL_HOST=smtp.example.net
MAIL_PORT=587
MAIL_USERNAME=assets@example.net
MAIL_PASSWORD=relay-password
MAIL_FROM_ADDR=assets@example.net
MAIL_FROM_NAME="Asset Desk"
MAIL_REPLYTO_ADDR=it@example.net

Port 25 is not promised to be open, so ask support with a ticket before planning direct delivery; the relay is the reliable choice (see SMTP relay for apps). Use the test button under the notification settings to confirm. Reminders and alerts depend on Laravel's scheduler, which needs a cron entry for the web user:

echo '* * * * * www-data cd /var/www/snipe-it && php artisan schedule:run >/dev/null 2>&1' | \
  sudo tee /etc/cron.d/snipe-it
php artisan config:clear

How do you back up and upgrade Snipe-IT?

Use the built-in backup command, then upgrade with the bundled script.

cd /var/www/snipe-it
php artisan snipeit:backup
ls storage/app/backups/
php upgrade.php

The backup zip holds a database dump plus uploads. Copy it off the server, or rely on the daily backups add-on as a second copy. upgrade.php checks requirements, pulls the new code, runs Composer and applies migrations; run it as the file owner, not as root. Read the release notes before a major version, which can raise the PHP minimum.

How do you fix common Snipe-IT errors?

  • 500 error after install: check storage/logs/laravel.log; missing write access to storage is the most frequent cause.
  • Links point to http: APP_URL still uses http. Update it and run php artisan config:clear.
  • Large imports time out: raise max_execution_time and upload_max_filesize in the FPM php.ini, then restart FPM.
  • No reminder emails: the cron file is missing or the mail settings fail the test.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
A1-1a small office inventory1 vCPU, 1 GB RAM, 25 GB NVMe$3.60/mo$43.20 for 12 months
A1-2larger imports and Composer upgrades1 vCPU, 2 GB RAM, 50 GB NVMe$7.20/mo$43.20 for 6 months
A2-4many users and attachments2 vCPU, 4 GB RAM, 100 GB NVMe$14.40/mo$43.20 for 3 months

Questions about Snipe-IT asset tracking

Can I run Snipe-IT in Docker instead?

Yes, the project publishes an image and a Compose example. The native install shown here is easier to debug and upgrade with the bundled script.

Does Snipe-IT support LDAP or SSO?

It supports LDAP and Active Directory sync and SAML single sign-on, configured from the settings pages.

Can staff scan asset labels?

Yes. Snipe-IT prints labels with QR codes or barcodes, and phones can scan them to open the asset page.

How many assets can a small plan handle?

Thousands of assets fit easily on a 1 or 2 GB plan. Database size stays small; uploaded images and documents grow faster.

Is there an API?

Yes, a REST API with personal access tokens, useful for syncing devices from inventory scripts.