On this page
- What does Snipe-IT need?
- How do you install the packages?
- How do you create the database?
- How do you download and configure Snipe-IT?
- What does the Nginx configuration look like?
- How do you finish the web setup?
- How do you set up mail and the scheduler?
- How do you back up and upgrade Snipe-IT?
- How do you fix common Snipe-IT errors?
- Questions
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 mariadbCREATE 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 .envSet 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-PasswordChecking 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/cacheWhat 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.netPort 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:clearHow 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.phpThe 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 tostorageis the most frequent cause. - Links point to http:
APP_URLstill uses http. Update it and runphp artisan config:clear. - Large imports time out: raise
max_execution_timeandupload_max_filesizein the FPMphp.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.
| Plan | Fits because | Size | Monthly | Order from |
|---|---|---|---|---|
| A1-1 | a small office inventory | 1 vCPU, 1 GB RAM, 25 GB NVMe | $3.60/mo | $43.20 for 12 months |
| A1-2 | larger imports and Composer upgrades | 1 vCPU, 2 GB RAM, 50 GB NVMe | $7.20/mo | $43.20 for 6 months |
| A2-4 | many users and attachments | 2 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.
More in Self-hosted apps
- Nextcloud on Nginx
- ownCloud Infinite Scale
- Seafile file sync
- Vaultwarden password vault
- Passbolt team password manager
- Gitea Git hosting
- Forgejo Git server
- GitLab Community Edition
- Gogs Git service
- Wiki.js
- BookStack documentation
- Outline knowledge base
- Paperless-ngx documents
- n8n workflow automation
- Activepieces automation
- Plausible Analytics (Community Edition)
- Umami analytics
- Mattermost team chat
- Matrix Synapse with Element
- Jitsi Meet video calls
- ONLYOFFICE Docs with Nextcloud
- HashiCorp Vault secrets server
- OpenBao secrets management
- Infisical secrets manager
- Authelia SSO and forward auth
- Zitadel identity platform
- VS Code in the browser (code-server)
- Joplin Server for notes sync
- Firefly III personal finance
- Odoo ERP on Ubuntu or Debian
- ERPNext with frappe_docker
- Dolibarr ERP and CRM with Nginx
- Penpot design tool with Docker
- Planka kanban boards
- Leantime project management
- Wekan boards with Docker
- Cal.com scheduling
- Chatwoot support inbox
- Mautic marketing automation
- DocuSeal document signing
- Metabase dashboards
- Appwrite backend server
- Self-hosted Supabase
- PocketBase backend
- RustDesk relay server
- Traccar GPS tracking
- Redmine project tracker
- The Lounge IRC client
- CyberChef data toolbox
- Typebot chat forms
- AFFiNE workspace
- Overleaf Community Edition
- Neko shared virtual browser
- imgproxy image resizing
- NetBox network inventory
- UVdesk help desk
- YetiForce CRM