Skip to content
Tech Master Tech Master

OneStopTechnical Forum

  • Books
  • AI
  • Networking
  • Windows
  • Linux
  • Cloud
  • Mac
  • Active Directory
  • Azure
  • Cloud
  • Exchange
  • M365
  • Server 2025
  • Storage
  • Vsphere
  • Website
  • Database
  • Security
  • Knowledge Base
  • VPN
Tech Master
Tech Master

OneStopTechnical Forum

Snipe-IT is an open-source IT asset management system

blog.payperitem.com, April 3, 2025April 3, 2025

Snipe-IT is an open-source IT asset management system that runs on a LAMP/LEMP stack. Below are the steps to install Snipe-IT on Ubuntu (22.04 or later).


Step 1: Update and Install Dependencies

bash
sudo apt update && sudo apt upgrade -y
sudo apt install -y apache2 mariadb-server php php-cli php-mbstring php-xml php-bcmath php-curl php-zip php-tokenizer unzip git curl

Step 2: Configure MySQL

  1. Secure MySQL installation: bashCopyEditsudo mysql_secure_installation
    • Set a root password
    • Remove anonymous users
    • Disallow remote root login
    • Remove the test database
  2. Login to MySQL and create a database for Snipe-IT: bashCopyEditsudo mysql -u root -p Then run the following SQL commands: sqlCopyEditCREATE DATABASE snipeit; CREATE USER 'snipeituser'@'localhost' IDENTIFIED BY 'StrongPassword'; GRANT ALL PRIVILEGES ON snipeit.* TO 'snipeituser'@'localhost'; FLUSH PRIVILEGES; EXIT;

Step 3: Install Composer and Clone Snipe-IT

bashsudo apt install -y composer
cd /var/www
sudo git clone https://github.com/snipe/snipe-it.git
sudo chown -R www-data:www-data snipe-it
cd snipe-it
cp .env.example .env

Edit .env to configure database settings:

bash
nano .env

Modify these lines:

iniAPP_URL=http://your-server-ip
DB_DATABASE=snipeit
DB_USERNAME=snipeituser
DB_PASSWORD=StrongPassword

Save and exit.


Step 4: Install PHP Dependencies

bash
composer install --no-dev --prefer-source

Step 5: Configure Apache

Create an Apache Virtual Host:

bash
sudo nano /etc/apache2/sites-available/snipeit.conf

Paste the following:

pgsql<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/snipe-it/public
ServerName your-server-ip

<Directory /var/www/snipe-it/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/snipeit_error.log
CustomLog ${APACHE_LOG_DIR}/snipeit_access.log combined
</VirtualHost>

Enable the site and restart Apache:

bash
sudo a2enmod rewrite
sudo a2ensite snipeit.conf
sudo systemctl restart apache2

Step 6: Run Snipe-IT Migrations

bash
php artisan migrate --force
php artisan key:generate

Step 7: Configure Permissions

bash
sudo chown -R www-data:www-data /var/www/snipe-it
sudo chmod -R 755 /var/www/snipe-it/storage
sudo chmod -R 755 /var/www/snipe-it/bootstrap/cache

Step 8: Access Snipe-IT

Open your browser and go to:

arduino
http://your-server-ip

Complete the setup wizard.


Step 9: (Optional) Enable HTTPS with Let’s Encrypt

bash
sudo apt install -y certbot python3-certbot-apache
sudo certbot --apache -d your-domain.com

Linux OpenSource Website

Post navigation

Previous post
Next post

Related Posts

List of solid Open Source Asset Management Software

April 7, 2025April 7, 2025

🔧 IT Asset Management (ITAM) / CMDB 🏢 Enterprise Asset Management (EAM) / General Assets 📦 Barcode/Inventory Tracking

Read More

Configure session-based Internet access by username and password through a Palo Alto firewall

April 11, 2025

To configure session-based Internet access by username and password through a Palo Alto firewall, where users authenticate before accessing websites, you’ll typically use Captive Portal along with User-ID, Authentication Policies, and possibly an external authentication service (like LDAP, RADIUS, or local database). Here’s a high-level step-by-step guide: ✅ 1. Configure…

Read More

Open-Source Storage server and client solutions

April 7, 2025April 7, 2025

🔹 Object Storage (S3-Compatible) 1. MinIO 🔹 Distributed File Systems 2. Ceph 3. GlusterFS 🔹 iSCSI / Block Storage 4. TargetCLI / LIO (Linux iSCSI Target) 5. Open-iSCSI (Client) 🔹 SMB / NFS (Traditional File Sharing) 6. Samba 7. NFS (Kernel or ganesha) 🔹 High Performance / Cloud-Native / Modern…

Read More

Recent Posts

  • List of AD Schema Versions
  • OldNewExplorer Free Download For Windows 11, 10, 8 and 7 [Latest Version]
  • How to Get the Classic (old) Context Menu on Windows 11
  • BitLocker Recovery Keys
  • Active Directory and Server hardening

Recent Comments

No comments to show.
June 2025
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« May    
Log in
©2025 Tech Master | WordPress Theme by SuperbThemes
  • Login
  • Sign Up
Forgot Password?
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
body::-webkit-scrollbar { width: 7px; } body::-webkit-scrollbar-track { border-radius: 10px; background: #f0f0f0; } body::-webkit-scrollbar-thumb { border-radius: 50px; background: #dfdbdb }