Snipe-IT Open Source Asset Management Windows Server Installation Guide! - YouTube

Channel: BTNHD

[0]
What's going on guys it is Bernardo from the BTNHD and today is all about snipe it open
[5]
source asset management, installations and it's a long one, so bear with me and let's
[11]
get right into it.
[12]
Alright so before we even start of how I got this guy installed within a Windows environment,
[18]
I will provide all the links that we go
[21]
over during the video at the bottom
[24]
at the comment section.
[26]
Okay.
[27]
All right.
[28]
So, on the desktop I'm going to right click on my start menu and go to run, type in WINVER
[33]
hit OK and I'm running everything within a Windows Server
[36]
2019.
[37]
Now, on the desktop.
[40]
I'm going to click on start, open up Server Manager, and on the upper
[45]
right side I'm going to
[46]
click on Manage
[47]
add Roles and Features,
[49]
and then from here click on next, next,
[51]
next, me to locate the web server IIS and give it a checkmark, and then just make sure
[57]
you add all the features and then click Next there.
[61]
We are going to check off dotnet framework, and then click on Next.
[66]
Next again.
[67]
I left
[68]
everything as the default.
[69]
Click
[70]
Next.
[71]
From here, just check off restart the destination server automatically if required.
[74]
Click yes here.
[76]
Click Install.
[77]
It's going to start installing and you're done, click on your start menu, open up windows
[82]
Administrative Tools and then open up your IIS Manager.
[86]
And then, there you go.
[87]
Good to go.
[88]
Now we need to install the URL rewrites.
[91]
Click on Install this extension.
[93]
Once it's finished downloading you're going to click on it, it's going to start loading
[97]
up.
[98]
It's going to launch up the web platform installer.
[101]
Click Install here, you're going to accept the license term.
[105]
It's going to start installing and you're done.
[108]
Awesome.
[109]
Now we need to download Maria dB.
[111]
I am going to download Maria db 10.4 so click on
[115]
the button that says download 10.4
[116]
point 12, it's going
[119]
to take you here and we are going to download
[121]
the windows x 64 MSI file.
[123]
And once
[125]
it's completed, click on it.
[127]
It's gonna prepare to install, you get a nice
[129]
little wizard I'm gonna leave everything as the default so just click next here.
[134]
Accept the license terms click Next.
[137]
Next, provide a root password and confirm
[139]
it
[140]
and then click on Next.
[141]
Next.
[142]
Next, install and you're done, and it couldn't finish on the desktop
[147]
we are going to click on start and
[149]
locate Microsoft web platform
[151]
installer.
[152]
Once it launches up we are going to head to
[154]
products, and we need to locate the PHP 7.4
[158]
point one, We're going to click on Add install, click on, I accept
[164]
is going to start installing,
[165]
everything works well except that we need to manually install the PHP manager for IIS,
[171]
as well as the windows cache extension.
[174]
Right, so click Finish there, and head over to this website and click on download this
[180]
extension.
[181]
Click OK
[182]
here.
[183]
Once it's done, click on the MSI file, it's going to launch up the wizard click Next.
[187]
Accept the license terms.
[190]
Click Next.
[191]
It's going to start installing
[192]
the PHP manager for the IIS.
[194]
And once it's done click on close,
[196]
open up your IIS Manager and you're going to see that it was installed.
[202]
the php manager,
[203]
awesome, right there.
[204]
Now
[205]
we need to download the windows cache, and click on the button that says Download once
[208]
it's downloaded click on the exe file to launch it up, click yes here, and we need to provide
[213]
a path to drop the files into so I'm going to click on Browse.
[216]
I'm going to drop everything inside the desktop, click OK, and we're done within the information
[222]
dialog box, you need to read this particular file so we are going to click OK, and we're
[227]
going to launch the win cache
[229]
underscore README file.
[230]
The reason that we're launching this is because we need to do a couple of things to
[233]
get this up and running.
[235]
So look at the installation
[236]
part and just follow it we need to
[237]
open up the ext folder, and we need to drop that dll file which is the PHP underscore
[243]
win cache right drop it in there.
[246]
We also
[247]
need to locate the PHP dot.
[248]
ini file so we are going to right click on it.
[251]
We're going to edit, and it's going to launch up.
[254]
We're going to go all the way to the bottom, and we need to add the following extension.
[258]
Now we're going to open up my favorite browser we're going to type in the following address
[261]
hit enter, it's going to download the
[263]
composer
[264]
for us and once it's completed,
[265]
click on the exe file to launch it up.
[267]
We're going to pick install for all users
[270]
get the nice little wizard click next here, click Next again, it's checking for the command
[274]
line from PHP, you're going to get this, click Next, install, it's going to start running
[279]
the composer, installer scripts, then you're going to get this click
[283]
on next and then finish.
[285]
Now we
[286]
need to get Git.
[287]
And we're going to click on Windows, and it's going to download the exe file once it's completed,
[292]
click on it to launch it up.
[294]
Click Next there.
[295]
Click Next.
[296]
I'm gonna leave everything as default click next, next, next, basically everything is
[302]
the default, just click Next again again.
[306]
Next.
[307]
Next, install is going to start installing it and you're done.
[311]
So what I did was, uncheck view release notes, and I want to launch the program and then
[315]
click next and then is going to launch up the command terminal.
[319]
Now I'm going to go inside the WWW root folder and create a new folder and give it a name,
[324]
and then go inside the folder and I'm going to copy that path, now that path is where
[327]
I'm going to drop the HTML, the images of the snipe software into.
[333]
Okay, so copy that path go inside your Git terminal.
[338]
And we need to run the following command.
[340]
Alright so we're pulling all the snipe files, and we're dropping it inside this folder.
[345]
This is my website.
[346]
Hit Enter.
[347]
It's gonna start cloning downloading all the information inside that folder and once it's
[352]
done you're able to go back inside that folder and you're going to see everything that you
[356]
need for snipe to work correctly within your environment.
[359]
So, we need to do a couple of things and we need to locate this file and make a copy of
[363]
it.
[364]
We're going to right click on it and then we're going to rename it
[366]
as the follwoing, and then hit enter.
[369]
Just hit
[370]
yes here, and then we're good to go.
[371]
Now right click on the file, and we need to edit now
[374]
we need to take care of a couple of things within this file so the first
[376]
thing that we're going to take care of is the basic app settings, and the only thing
[381]
that I'm going to change right here would be my app URL, this would be my app URL.
[385]
Now, next thing that we need to take care of is the database settings.
[389]
So we're going to click on Start,
[390]
and within start we are going to open up Maria DB folder, and we are going to launch up the
[396]
MySQL client command terminal.
[398]
Awesome, enter your password, and the first command that we're going to enter would be
[403]
this we are going to create a database called snipe it.
[407]
Awesome.
[408]
I'm going to run a command of show database to make sure that this
[410]
snipe it database was created.
[413]
And we're going to run the following
[414]
command to create a user hit enter, and then we're going
[418]
to give the new user
[419]
access to our new database
[422]
using this command here hit enter and then
[424]
go back inside that ENV file and fill out the following information, fill out your database
[429]
name, the username and the password.
[431]
Now the next thing that we need to do is configure your dump path, now to do that we need to
[436]
go inside Program Files, Maria dB, and your bin file, is your dump
[441]
file.
[442]
But we need to hold the shift key, right click on that bin folder and then click on
[446]
copy as path.
[447]
Once you do that, open up PowerShell,
[450]
and enter CMD hit Enter, and we need to run the following command.
[455]
Hit enter.
[456]
Awesome.
[457]
Now this echo is basically what we need to copy and then paste it inside the ENV file,
[464]
but make sure you add an additional
[466]
backslash like this.
[469]
Right.
[470]
Once you're done save the file.
[472]
Now click on start, and within start we're going to type in CMD, and then hit enter.
[477]
From here we're going to change the directory to go inside our snipe it folder our website
[483]
we need to run the following command of composer install hit enter, you're going to get some
[487]
issues, and to fix this we need to go inside the php.ini file and enter the following extension
[494]
and then save the file.
[496]
Go back inside your command prompt and start composer install again you're going to see
[501]
that it's going to start downloading and installing and then you're good to go.
[505]
Now, within the command
[506]
prompt we need to generate a key with the following
[509]
command hit Enter
[511]
Type in Yes, hit Enter, and we're good to go.
[514]
Now, open up your IIS Manager and open up sites, we need to stop the default website,
[520]
we're going to select the site's folder, right click on it, add a website into your site
[525]
name physical path and your host name this is the information that I provided it Okay,
[530]
once you hit OK.
[531]
Select your new website, and we need to go inside mappings.
[535]
And within mappings we need to make the following changes so locate the PHP fast CGI, double
[541]
click on it, within the executable dialog box, make sure that that path is within double
[545]
quotations, click on
[547]
Request restrictions, go to verbs
[549]
and add the following verbs of delete, put and patch, and then click OK.
[554]
OK, click yes here.
[557]
And we need to do one more change locate the PHP 53 fast CGI double click on it.
[563]
Make sure the executable path is inside double quotations, click on Request restrictions,
[570]
go to verbs and add the following verbs and delete, put and patch in hit OK.
[575]
Okay, and it yes now within public and uploads right click on it and we need to change the
[580]
permissions and add the internet user account and give it full control, then we need to
[585]
go inside bootstrap and right click on cache and add the internet user and give that
[591]
User Account full
[592]
control, then we need to go inside storage, right click on it, go to properties go to
[597]
security, and we need to enter internet user and give that user only modified rights to
[603]
that particular folder.
[605]
And then we need to go inside windows temp.
[607]
You're going to add the internet user accounts, and only give it modify rights and open up
[612]
your favorite browser type in your host name.
[616]
hit enter and it's going to launch up the snipe it, and you get green checkmarks which
[620]
is a good thing and then you're going to click on create database table, I received this
[624]
issue.
[625]
So, the way that I fixed it was the following I needed to open up the command prompt, I
[629]
change the directory to go to my website, and I ran the following command to migrate
[634]
it enter I typed in Yes, enter; done.
[638]
Go back inside the site and you're going to see that it is going to state there was nothing
[642]
to migrate your database tables were already set out, then click on Create new user enter
[647]
all the information that's highlighted in orange.
[650]
Once we've done there.
[651]
Click on Save user, and it takes you directly to your snipe it Asset Management site.
[658]
How awesome is that, hopefully you guys enjoyed this video make sure to hit that thumbs up.
[662]
Do not forget about punch, elbow and smashing that subscribe button and also there's a little
[667]
bell right there that you should just hit it to
[670]
get notifications when I release something new,
[672]
and I'll catch you guys on the next one.
[673]
Peace out.