How to Install Snipe IT on Windows 11
Snipe IT is a free and open-source asset management system that allows organizations to track their assets such as computers, equipment, and software licenses. In this tutorial, we will walk you through the steps to install Snipe IT on Windows 11.
Prerequisites
Before we proceed with the installation of Snipe IT, we need to ensure that our system meets the following requirements:
- Windows 11 operating system
- XAMPP Server (Apache, PHP, and MySQL)
- Composer
- Git
Step 1: Install XAMPP Server
If you don't have XAMPP Server already installed on your system, follow these steps:
- Download XAMPP Server package from https://www.apachefriends.org/download.html.
- Double-click on the downloaded file to start the installation process.
- Follow the installation wizard and select the components you want to install (Apache, MySQL, PHP, etc.).
- Once the installation is complete, start the XAMPP control panel and start Apache and MySQL services.
Step 2: Install Composer
Composer is a dependency management tool for PHP that is required to install Snipe IT. Follow the below steps to install Composer:
- Download Composer installer from https://getcomposer.org/download/.
- Double-click on the downloaded file to start the installation process.
- Follow the installation wizard and select the default options.
Step 3: Install Git
Git is a version control system that is required to clone the Snipe IT repository. Follow the below steps to install Git:
- Download Git from https://git-scm.com/downloads.
- Double-click on the downloaded file to start the installation process.
- Follow the installation wizard and select the default options.
Step 4: Clone Snipe IT Repository
Now that we have installed all the required tools, we can proceed with cloning the Snipe IT repository. Follow the below steps:
- Open Command Prompt by pressing Windows key + R and type
cmdand hit Enter. - Navigate to the directory where you want to install Snipe IT. For example,
cd C:\xampp\htdocs. - Clone the Snipe IT repository by running the following command:
git clone https://github.com/snipe/snipe-it.git
- Once the cloning process is complete, navigate to the
snipe-itdirectory by running the following command:
cd snipe-it
- Install the dependencies required by Snipe IT by running the following command:
composer install --no-dev
Step 5: Create the .env File
The .env file contains the configuration settings for Snipe IT. We need to create this file and set our environment variables. Follow the below steps:
- Copy the
.env.examplefile by running the following command:
cp .env.example .env
- Edit the
.envfile and set the following variables:
APP_ENV=production
APP_KEY=
APP_URL=http://localhost
.
.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=snipeit
DB_USERNAME=root
DB_PASSWORD=
- Save and close the file.
Step 6: Create the Database
We need to create a MySQL database for Snipe IT to store the asset data. Follow the below steps:
- Open your web browser and navigate to
http://localhost/phpmyadmin. - Click on the
Newbutton in the left sidebar. - Enter
snipeitas the database name and click on theCreatebutton.
Step 7: Run the Installation Wizard
Now that everything is set up, we can run the Snipe IT installation wizard. Follow the below steps:
- Open your web browser and navigate to
http://localhost/snipe-it/public. - Follow the installation wizard and enter the required information.
- Once the installation is complete, you can log in to your Snipe IT instance.
Conclusion
Congratulations, you have successfully installed Snipe IT on your Windows 11 system. You can now start managing your assets using Snipe IT.