Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Concise instructions (building in all the troubleshooting steps to this list) #24

Closed
James-LA opened this issue May 25, 2016 · 18 comments
Closed

Comments

@James-LA
Copy link

I think this may help users getting this thing up and running without much trouble.
it took me a while to get things to run and I went through the entire issue list, and compiled steps into integrating all the solutions, i'm pretty sure (90%) that this should cover all the problems.

thank you to all the contributors before me (too many to name) for this list. please review and let me know if this works along the same path, there are some detours, but I think it will be as complete as possible.

Installation Instructions for passcore:

[Assuming you've downloaded the latest zip]<<
1 - Unblock the zip (properties > unblock)
2 - unpack into any directory
3 - Install IIS + IIS Application Development Tools (all but CGI)
4 - Install a self signed personal certificate with the name of the website (eg. password.mydomain.com)
5 - Install HttpPlatformHandler from Web Platform Installer --> http://www.iis.net/downloads/microsoft/httpplatformhandler
6 - Install .Net Framework 3.x, 4.x (Server Features may have this as well) --> http://www.microsoft.com/en-us/download/details.aspx?id=42643
7 - Verify and install powershell version 4.0 is installed (in powershell $PSVersionTable.PSVersion)
8 - Install Visual C++ 2013 Redist --> http://www.microsoft.com/en-us/download/details.aspx?id=40784
9 - Run powershell as admin: $Branch='dev'; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))
10 - while in elevated powershell -> cd %passcore_home%/approot/src/Unosquare.passcore.web/ ; dnu restore
a - if dnu restore does not work, run "dnvm install latest" first (then go back to item 9)
11 - [OPTIONAL IF TESTING NEWLY CREATED USERS] - Ensure password min policy is set to 0 days: GPO_name\Computer Configuration\Windows Settings\Security Settings\Account Policies\Password Policy
a - https://technet.microsoft.com/en-us/library/hh994570%28v=ws.11%29.aspx
12 - Create the Application Pool in IIS: Find Application Pools and Right Click > add application pool
a - name: passcore application pool
b - .net CLR version: no managed code
c - managed pipeline: integrated
d - start immeidately: unchecked
13 - Right Click the application pool > advanced settings
a - start mode: alwaysrunning
b - idle time-out: 0 << never idles
c - OK
14 - Go back to IIS manager and create a new site
a - Right click sites > add website
b - Site name: passcore website
c - application pool: select the created application pool: passcore application pool
d - physical path: find the path to the unzipped directory > wwwroot (not the parent directory)
e - binding: (type) https / (ip address) All UnAssigned / (port) 443
f - ssl cert: select the self signed cert that was created in option 4
15 - cd %passcore_home%/approot/src/Unosquare.passcore.web/; edit > appsettings.json

Edit the following:
"AppSettings": {
"RecaptchaPrivateKey": "",
"PasswordChangeOptions": {
"UseAutomaticContext": false, << change to false
"LdapHostname": "", << hostname of ad server
"LdapPort": 389,
"LdapUsername": "", << admin user name
"LdapPassword": "" << admin password

16 - (re)start the application pool and website
17 - browse to https://
a - if browsing does not work: cd into approot/src/Unosquare.passcore.web/ then run: dnvm install -u
b - restart iis: iisreset
c - try again.

let me know if this list works -- it builds into the fact that the user has not installed iis or anything, so it really takes you in from scratch.

again thanks for all the contributors previous to me=)

@James-LA James-LA changed the title Concise instructions (building in all the troubleshooting steps in this list) Concise instructions (building in all the troubleshooting steps to this list) May 25, 2016
@mariodivece
Copy link
Member

Thanks so much! I just added this post in the Readme file under the Troubleshooting section!

@hotorodjeremy
Copy link

Hi I am completely unsure why but step 10a fails saying dnu doesn't exsist.
I go back to 9 and everything seems to install fine.

also I have no option for startmode to change to always running.

Bottom line I cannot get the page to load.
a blank page comes up and says loading but it never loads.

Can you please help me figure out what is wrong.

@AnthonyKolka
Copy link

Between step 9 and 10 you need to launch a new Powershell instance.

@CJK2014
Copy link

CJK2014 commented Sep 2, 2016

I created the self signed cert and I'm getting stuck at "continue to this website" I click to move on and it is stuck loading forever. No error, no logs. Thoughts?

@CJK2014
Copy link

CJK2014 commented Sep 2, 2016

I was able to resolve my issue. I noticed my DNU restore was actually failing when running from the directory listed here:

10 - while in elevated powershell -> cd %passcore_home%/approot/src/Unosquare.passcore.web/ ; dnu restore

The error showed that it couldn't find packages, so i ran it in passcore/approot and it finished with 97 updates. I then rebooted my server and everything is now working.

@MattObs
Copy link

MattObs commented Sep 21, 2016

10 - while in elevated powershell -> cd %passcore_home%/approot/src/Unosquare.passcore.web/ ; dnu restore
a - if dnu restore does not work, run "dnvm install latest" first (then go back to item 9)

If 'a' also doesnt work, also run "dnvm upgrade" and then try step 10 again.

@krencastro
Copy link

krencastro commented Nov 1, 2016

Step 10 still fails.

The root .../../../Unosquare.passcore.web is invalid

What am I doing wrong?

@kassend
Copy link

kassend commented Dec 6, 2016

Morning,
I'm also stuck with step 10..... Cannot find the path c:\passcore_home\approot\src\Unosquare.passcore.web/

@nulleddeviant
Copy link

Had the same problem @krencastro and @kassend. You have to change \Unosquare.passcore.web to \Unosquare.PassCore.Web

For some reason it's case-sensitive.

@kassend
Copy link

kassend commented Dec 7, 2016 via email

@kassend
Copy link

kassend commented Dec 8, 2016 via email

@nulleddeviant
Copy link

nulleddeviant commented Dec 8, 2016 via email

@kassend
Copy link

kassend commented Dec 9, 2016 via email

@mycel02
Copy link

mycel02 commented Apr 26, 2017

Thanks guys. I got mine to work.

I only ran to an issue in number 9 and 10. where in the DNVM isnt existing and i had to browse github to this url to download the zip file for the dnvm. https://github.com/nurtenkovacheva/DnvmInstall after that it was smooth sailing.

@mycel02
Copy link

mycel02 commented May 18, 2017 via email

@hotorodjeremy
Copy link

hotorodjeremy commented May 18, 2017 via email

@mycel02
Copy link

mycel02 commented May 19, 2017

Hi Jeremy,

When i was doing the project previously, i was able to access it using that url. But it seems that its no longer available.

Seaching github I found other repositories on the dnvm which you might be able to try. Credits to the owners of the links.

I believe this one(from nurtenkovacheva) has the dnvm.cmd which you can run via the command line and should automate as much of the install, although i havent tried it yet, But it should be similar to what i previously used with the .cmd installer from the hyperlink that doesnt work anymore.
https://github.com/nurtenkovacheva/DnvmInstall

This one(from xaviermignot) only has the .ps1 file and would need a bit of wrangling to get it to work.
https://github.com/xaviermignot/dnvminstall

Thanks

Mike

@BENT17
Copy link

BENT17 commented Jan 30, 2019

Trying to run Step 9 and getting a 404 not found error. Does anyone have the right link?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests