|
@@ -0,0 +1,112 @@
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
|
|
+ <head>
|
|
|
+ <title>Self-hosted Asset Management System with Snipe-IT on Windows</title>
|
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Asset Management,IT Asset Management,Free Software,Snipe-IT,Windows,Microsoft Windows,PHP,MySQL,MariaDB,XAMPP,Apache HTTPD,How To,Tutorial,i12bretro">
|
|
|
+ <meta name="author" content="i12bretro">
|
|
|
+ <meta name="description" content="Self-hosted Asset Management System with Snipe-IT on Windows">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <meta name="revised" content="12/23/2023 09:44:35 AM" />
|
|
|
+ <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
|
|
|
+ <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
|
|
|
+ <script type="text/javascript" src="includes/js/steps.js"></script>
|
|
|
+ <link href="css/steps.css" rel="stylesheet" type="text/css" />
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div id="gridContainer">
|
|
|
+ <div class="topMargin"></div>
|
|
|
+ <div id="listName" class="topMargin">
|
|
|
+ <h1>Self-hosted Asset Management System with Snipe-IT on Windows</h1>
|
|
|
+ </div>
|
|
|
+ <div></div>
|
|
|
+ <div id="content">
|
|
|
+ <ol>
|
|
|
+ <li>Download XAMPP <a href="https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/" target="_blank">Download</a></li>
|
|
|
+ <li>Download Snipe-IT <a href="https://github.com/snipe/snipe-it/releases/latest" target="_blank">Download</a></li>
|
|
|
+ <li><label for="cb_li_917989_0">Download Microsoft Visual C++ </label><label for="cb_li_917989_0"><a href="https://aka.ms/vs/16/release/vc_redist.x64.exe" target="_blank">Download</a></label></li>
|
|
|
+ <li><label for="cb_li_917989_0">Download Composer <a href="https://getcomposer.org/Composer-Setup.exe" target="_blank">Download</a></label></li>
|
|
|
+ <li>Install Microsoft Visual C++</li>
|
|
|
+ <li>Right click the downloaded XAMPP .zip file > Extract All...</li>
|
|
|
+ <li>Right click the downloaded Snipe-IT .zip file > Extract All...</li>
|
|
|
+ <li>Rename the extracted folder snipe-it</li>
|
|
|
+ <li>Cut the snipe-it folder inside the XAMPP directory</li>
|
|
|
+ <li>Copy the extracted XAMPP directory to a safe location to run from, C:\Program Files for example</li>
|
|
|
+ <li>Run XAMPP/setup_xampp.bat to update the configuration files with the new server location</li>
|
|
|
+ <li>Navigate to XAMPP/php and edit php.ini</li>
|
|
|
+ <li>Find the following line and remove the ; to uncomment them
|
|
|
+ <p>extension=ldap</p>
|
|
|
+ </li>
|
|
|
+ <li>Save the changes to php.ini</li>
|
|
|
+ <li>Navigate to XAMPP/apache/conf and edit httpd.conf</li>
|
|
|
+ <li>Paste the following configuration at the bottom of the file, update the folder paths as needed
|
|
|
+ <p>Alias /snipe-it "C:/Program Files/xampp/snipe-it/public/"<br />
|
|
|
+ <Directory "C:/Program Files/xampp/snipe-it/public"><br />
|
|
|
+ Options Indexes FollowSymLinks<br />
|
|
|
+ AllowOverride All<br />
|
|
|
+ Require all granted<br />
|
|
|
+ </Directory></p>
|
|
|
+ </li>
|
|
|
+ <li>Save the changes to httpd.conf</li>
|
|
|
+ <li>Install Composer</li>
|
|
|
+ <li>Navigate to the XAMPP/snipe-it folder > Right click in the white space > Open PowerShell window here...</li>
|
|
|
+ <li>Run the following command to download dependencies
|
|
|
+ <div class="codeBlock PS"># create a copy of the sample .env file<br />
|
|
|
+ cp .\.env.example .\.env<br />
|
|
|
+ # install dependencies with composer<br />
|
|
|
+ composer i --no-dev --prefer-source<br />
|
|
|
+ # generate app key, type yes to confirm generating a new key<br />
|
|
|
+ php artisan key:generate<br />
|
|
|
+ # edit .env in notepad<br />
|
|
|
+ notepad .\.env</div>
|
|
|
+ </li>
|
|
|
+ <li>Modifying the following key/value pairs in .env as needed
|
|
|
+ <p>APP_ENV=production<br />
|
|
|
+ APP_DEBUG=false<br />
|
|
|
+ APP_KEY=SomethingSecure<br />
|
|
|
+ APP_URL=http://debian/snipe_it<br />
|
|
|
+ APP_TIMEZONE='America/New_York'<br />
|
|
|
+ APP_LOCALE=en<br />
|
|
|
+ <br />
|
|
|
+ DB_CONNECTION=mysql<br />
|
|
|
+ DB_HOST=127.0.0.1<br />
|
|
|
+ DB_DATABASE=snipe_it<br />
|
|
|
+ DB_USERNAME=snipe_it_rw<br />
|
|
|
+ DB_PASSWORD=$nip3-IT!<br />
|
|
|
+ <br />
|
|
|
+ MAIL_DRIVER=smtp<br />
|
|
|
+ MAIL_HOST=smtp.i12bretro.local<br />
|
|
|
+ MAIL_PORT=25<br />
|
|
|
+ MAIL_USERNAME=null<br />
|
|
|
+ MAIL_PASSWORD=null<br />
|
|
|
+ MAIL_ENCRYPTION=null<br />
|
|
|
+ MAIL_FROM_ADDR=snipe-it@i12bretro.local<br />
|
|
|
+ MAIL_FROM_NAME='Snipe-IT'<br />
|
|
|
+ MAIL_REPLYTO_ADDR=snipe-it@i12bretro.local<br />
|
|
|
+ MAIL_REPLYTO_NAME='Snipe-IT'<br />
|
|
|
+ MAIL_AUTO_EMBED_METHOD='attachment'</p>
|
|
|
+ </li>
|
|
|
+ <li>Save the changes to .env</li>
|
|
|
+ <li>Run XAMPP/xampp-control.exe</li>
|
|
|
+ <li>Click the Start button next to Apache and MySQL</li>
|
|
|
+ <li>Navigate to XAMPP/mysql/bin</li>
|
|
|
+ <li>Hold the SHIFT key and right click in the white space > Open PowerShell window here...</li>
|
|
|
+ <li>Type the following in the PowerShell window to setup the Snipe-IT database
|
|
|
+ <div class="codeBlock PS">.\mysql -u root<br />
|
|
|
+ CREATE DATABASE snipe_it;<br />
|
|
|
+ GRANT ALL ON snipe_it.* to 'snipe_it_rw'@'localhost' IDENTIFIED BY '$nip3-IT!';<br />
|
|
|
+ FLUSH PRIVILEGES;<br />
|
|
|
+ EXIT;<br />
|
|
|
+ exit</div>
|
|
|
+ </li>
|
|
|
+ <li>Open a web browser and navigate to http://DNSorIP/snipe-it</li>
|
|
|
+ <li>Review the Pre-Flight Checks summary > Click the Next: Create Database Tables button</li>
|
|
|
+ <li>Once the database tables are created, Click the Next: Create User button</li>
|
|
|
+ <li>Create a user by inputting a site name, first name, last name, email address, username and password > Click the Next: Save User button</li>
|
|
|
+ <li>Welcome to Snipe-IT</li>
|
|
|
+</ol> </div>
|
|
|
+ </div>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+
|