What's going on guys it is Bernardo from the BTNHD and today is all about snipe it open
source asset management, installations and it's a long one, so bear with me and let's
get right into it.
Alright so before we even start of how I got this guy installed within a Windows environment,
I will provide all the links that we go
over during the video at the bottom
at the comment section.
Okay.
All right.
So, on the desktop I'm going to right click on my start menu and go to run, type in WINVER
hit OK and I'm running everything within a Windows Server
2019.
Now, on the desktop.
I'm going to click on start, open up Server Manager, and on the upper
right side I'm going to
click on Manage
add Roles and Features,
and then from here click on next, next,
next, me to locate the web server IIS and give it a checkmark, and then just make sure
you add all the features and then click Next there.
We are going to check off dotnet framework, and then click on Next.
Next again.
I left
everything as the default.
Click
Next.
From here, just check off restart the destination server automatically if required.
Click yes here.
Click Install.
It's going to start installing and you're done, click on your start menu, open up windows
Administrative Tools and then open up your IIS Manager.
And then, there you go.
Good to go.
Now we need to install the URL rewrites.
Click on Install this extension.
Once it's finished downloading you're going to click on it, it's going to start loading
up.
It's going to launch up the web platform installer.
Click Install here, you're going to accept the license term.
It's going to start installing and you're done.
Awesome.
Now we need to download Maria dB.
I am going to download Maria db 10.4 so click on
the button that says download 10.4
point 12, it's going
to take you here and we are going to download
the windows x 64 MSI file.
And once
it's completed, click on it.
It's gonna prepare to install, you get a nice
little wizard I'm gonna leave everything as the default so just click next here.
Accept the license terms click Next.
Next, provide a root password and confirm
it
and then click on Next.
Next.
Next, install and you're done, and it couldn't finish on the desktop
we are going to click on start and
locate Microsoft web platform
installer.
Once it launches up we are going to head to
products, and we need to locate the PHP 7.4
point one, We're going to click on Add install, click on, I accept
is going to start installing,
everything works well except that we need to manually install the PHP manager for IIS,
as well as the windows cache extension.
Right, so click Finish there, and head over to this website and click on download this
extension.
Click OK
here.
Once it's done, click on the MSI file, it's going to launch up the wizard click Next.
Accept the license terms.
Click Next.
It's going to start installing
the PHP manager for the IIS.
And once it's done click on close,
open up your IIS Manager and you're going to see that it was installed.
the php manager,
awesome, right there.
Now
we need to download the windows cache, and click on the button that says Download once
it's downloaded click on the exe file to launch it up, click yes here, and we need to provide
a path to drop the files into so I'm going to click on Browse.
I'm going to drop everything inside the desktop, click OK, and we're done within the information
dialog box, you need to read this particular file so we are going to click OK, and we're
going to launch the win cache
underscore README file.
The reason that we're launching this is because we need to do a couple of things to
get this up and running.
So look at the installation
part and just follow it we need to
open up the ext folder, and we need to drop that dll file which is the PHP underscore
win cache right drop it in there.
We also
need to locate the PHP dot.
ini file so we are going to right click on it.
We're going to edit, and it's going to launch up.
We're going to go all the way to the bottom, and we need to add the following extension.
Now we're going to open up my favorite browser we're going to type in the following address
hit enter, it's going to download the
composer
for us and once it's completed,
click on the exe file to launch it up.
We're going to pick install for all users
get the nice little wizard click next here, click Next again, it's checking for the command
line from PHP, you're going to get this, click Next, install, it's going to start running
the composer, installer scripts, then you're going to get this click
on next and then finish.
Now we
need to get Git.
And we're going to click on Windows, and it's going to download the exe file once it's completed,
click on it to launch it up.
Click Next there.
Click Next.
I'm gonna leave everything as default click next, next, next, basically everything is
the default, just click Next again again.
Next.
Next, install is going to start installing it and you're done.
So what I did was, uncheck view release notes, and I want to launch the program and then
click next and then is going to launch up the command terminal.
Now I'm going to go inside the WWW root folder and create a new folder and give it a name,
and then go inside the folder and I'm going to copy that path, now that path is where
I'm going to drop the HTML, the images of the snipe software into.
Okay, so copy that path go inside your Git terminal.
And we need to run the following command.
Alright so we're pulling all the snipe files, and we're dropping it inside this folder.
This is my website.
Hit Enter.
It's gonna start cloning downloading all the information inside that folder and once it's
done you're able to go back inside that folder and you're going to see everything that you
need for snipe to work correctly within your environment.
So, we need to do a couple of things and we need to locate this file and make a copy of
it.
We're going to right click on it and then we're going to rename it
as the follwoing, and then hit enter.
Just hit
yes here, and then we're good to go.
Now right click on the file, and we need to edit now
we need to take care of a couple of things within this file so the first
thing that we're going to take care of is the basic app settings, and the only thing
that I'm going to change right here would be my app URL, this would be my app URL.
Now, next thing that we need to take care of is the database settings.
So we're going to click on Start,
and within start we are going to open up Maria DB folder, and we are going to launch up the
MySQL client command terminal.
Awesome, enter your password, and the first command that we're going to enter would be
this we are going to create a database called snipe it.
Awesome.
I'm going to run a command of show database to make sure that this
snipe it database was created.
And we're going to run the following
command to create a user hit enter, and then we're going
to give the new user
access to our new database
using this command here hit enter and then
go back inside that ENV file and fill out the following information, fill out your database
name, the username and the password.
Now the next thing that we need to do is configure your dump path, now to do that we need to
go inside Program Files, Maria dB, and your bin file, is your dump
file.
But we need to hold the shift key, right click on that bin folder and then click on
copy as path.
Once you do that, open up PowerShell,
and enter CMD hit Enter, and we need to run the following command.
Hit enter.
Awesome.
Now this echo is basically what we need to copy and then paste it inside the ENV file,
but make sure you add an additional
backslash like this.
Right.
Once you're done save the file.
Now click on start, and within start we're going to type in CMD, and then hit enter.
From here we're going to change the directory to go inside our snipe it folder our website
we need to run the following command of composer install hit enter, you're going to get some
issues, and to fix this we need to go inside the php.ini file and enter the following extension
and then save the file.
Go back inside your command prompt and start composer install again you're going to see
that it's going to start downloading and installing and then you're good to go.
Now, within the command
prompt we need to generate a key with the following
command hit Enter
Type in Yes, hit Enter, and we're good to go.
Now, open up your IIS Manager and open up sites, we need to stop the default website,
we're going to select the site's folder, right click on it, add a website into your site
name physical path and your host name this is the information that I provided it Okay,
once you hit OK.
Select your new website, and we need to go inside mappings.
And within mappings we need to make the following changes so locate the PHP fast CGI, double
click on it, within the executable dialog box, make sure that that path is within double
quotations, click on
Request restrictions, go to verbs
and add the following verbs of delete, put and patch, and then click OK.
OK, click yes here.
And we need to do one more change locate the PHP 53 fast CGI double click on it.
Make sure the executable path is inside double quotations, click on Request restrictions,
go to verbs and add the following verbs and delete, put and patch in hit OK.
Okay, and it yes now within public and uploads right click on it and we need to change the
permissions and add the internet user account and give it full control, then we need to
go inside bootstrap and right click on cache and add the internet user and give that
User Account full
control, then we need to go inside storage, right click on it, go to properties go to
security, and we need to enter internet user and give that user only modified rights to
that particular folder.
And then we need to go inside windows temp.
You're going to add the internet user accounts, and only give it modify rights and open up
your favorite browser type in your host name.
hit enter and it's going to launch up the snipe it, and you get green checkmarks which
is a good thing and then you're going to click on create database table, I received this
issue.
So, the way that I fixed it was the following I needed to open up the command prompt, I
change the directory to go to my website, and I ran the following command to migrate
it enter I typed in Yes, enter; done.
Go back inside the site and you're going to see that it is going to state there was nothing
to migrate your database tables were already set out, then click on Create new user enter
all the information that's highlighted in orange.
Once we've done there.
Click on Save user, and it takes you directly to your snipe it Asset Management site.
How awesome is that, hopefully you guys enjoyed this video make sure to hit that thumbs up.
Do not forget about punch, elbow and smashing that subscribe button and also there's a little
bell right there that you should just hit it to
get notifications when I release something new,
and I'll catch you guys on the next one.
Peace out.