TSF – Giải pháp IT toàn diện cho doanh nghiệp SMB | HCM

P2 - How to Install SnipeIT on Windows – Full Setup Tutorial (XAMPP + PHP)

🚀 SnipeIT – P2 How to Install Snipe-IT on Windows (Full Setup Tutorial with XAMPP + PHP)

Installing Snipe-IT on Windows is one of the most practical ways to deploy an open-source IT Asset Management system in a lab, small business, or internal IT environment. In this step-by-step guide, you’ll learn how to install Snipe-IT using XAMPP, PHP, Composer, and MySQL, ensuring a stable and error-free setup.

This tutorial is designed for IT Support, Helpdesk, and System Administrators who want a clean installation process without configuration confusion. By the end of this guide, you will have a fully working Snipe-IT environment running on Windows.

All steps below are updated and compatible with modern Windows systems (optimized for 2025 environments).


🖥️ Step 1: Download Web Server (XAMPP for Windows)

Snipe-IT requires Apache, MySQL, and PHP. The easiest way to install these components on Windows is via XAMPP.

Download here:
https://www.apachefriends.org/download.html

Install XAMPP with default settings.


📦 Step 2: Download and Install Composer

Composer is required to install Snipe-IT PHP dependencies.

Download here:
https://getcomposer.org/download/

During installation, make sure you point Composer to the PHP path inside your XAMPP directory.

After installation, verify by opening CMD and running:

 
php -v composer

If both commands return version information, Composer is successfully installed.


📥 Step 3: Download and Install Snipe-IT

Download the latest version from:

https://github.com/grokability/snipe-it/releases/

Extract the package and copy the folder to:

 
C:\xampp\htdocs

Rename the folder to:

 
snipe-it

⚙️ Step 4: Configure Snipe-IT Environment

Inside the snipe-it folder:

  • Copy .env.example

  • Rename it to .env

Open .env using Notepad++.

Rewrite the following line:

 
APP_URL=localhost

Next:

  • Enable “View hidden files” and “File name extensions” in Windows Folder Options.

  • Navigate to:

 
C:\xampp\php

Open php.ini.

Find the following modules:

 
ldap gd sodium zip

Remove the ; before each line to enable them.

Save the file.


🗄️ Step 5: Create Database for Snipe-IT

Open xampp-control and start:

  • Apache

  • MySQL

Access:

 
localhost/phpmyadmin

Select your preferred language.

Click New → Enter database name → Create

After database creation, open CMD and run:

 
cd C:\xampp\htdocs\snipe-it composer install

This installs all required PHP dependencies.


🔑 Step 6: Generate Application Key

Open CMD and navigate to the Snipe-IT directory:

 
cd C:\xampp\htdocs\snipe-it

Run:

 
php artisan key:generate

This command generates a secure Laravel application key.


🌐 Step 7: Configure HTTP Path

Open .env file again and edit:

 
DATABASE=snipeit USERNAME=root

Now edit Apache configuration:

Open:

 
C:\xampp\apache\conf\httpd.conf

Find the DocumentRoot line and change it to:

 
DocumentRoot "/xampp/htdocs/snipe-it/public" <Directory "xampp/htdocs/snipe-it/public">

Save the file.

Restart Apache:

Stop → Start


✅ Step 8: Complete Web Setup

Open your browser and access:

 
localhost/setup

Follow the web-based installation wizard to complete setup.


🎯 Why Install Snipe-IT on Windows?

Running Snipe-IT on Windows using XAMPP is ideal for:

  • IT Lab environments

  • Testing before production deployment

  • Small business asset tracking

  • Internal IT inventory management

Snipe-IT allows you to:

✔ Track hardware assets
✔ Manage software licenses
✔ Assign assets to users
✔ Monitor accessories and components
✔ Generate reports

All within a centralized web interface.


🔥 Final Thoughts

You now have a fully working Snipe-IT installation on Windows using XAMPP and PHP. This method provides a simple yet powerful way to deploy an open-source IT Asset Management platform without requiring Linux.

If you follow each step carefully, your installation will run smoothly without common dependency or permission errors.

For best performance in production, consider deploying Snipe-IT on Ubuntu Server with Apache or Nginx. However, for learning, testing, or small-scale use, Windows + XAMPP works perfectly.

See also related articles

P13 – Ultimate QR Code SnipeIT Setup Made Easy

P13 – Ultimate QR Code SnipeIT Setup Made Easy SnipeIT – P13 QR Code Setup Guide | Create and Print Asset QR Codes Managing IT assets without proper labeling can quickly become chaotic.When devices move between departments, employees leave, or audits happen, identifying assets manually wastes time and increases errors....

Read More

P12 – Ultimate Bulk Method to Check In Check Out Assets in SnipeIT

P12 – Ultimate Bulk Method to Check In Check Out Assets in SnipeIT SnipeIT – P12 The Fastest Way to Check-In & Check-Out Assets in Snipe-IT (Bulk Method) Managing a few devices manually is easy. Managing 100–500 assets during onboarding, offboarding, or department transfers? That’s a different story. If you...

Read More

P11 – Ultimate Guide to Check In Check Out in SnipeIT

P11 – Ultimate Guide to Check In Check Out in SnipeIT SnipeIT – P11 How to Manage Check In Check Out in SnipeIT (Step-by-Step) Efficient asset tracking is the backbone of every IT department. If you cannot accurately manage Check In check Out in SnipeIT, your asset database quickly becomes...

Read More
Install SnipeIT on Windows