Part-1: My sitecore-nine-utilities with Sitecore XP0

We can find the summary of this series in here. And we have to clone the following repository from github to our local environment

https://github.com/kimcu-on-thenet/sitecore-nine-utilities

Assumptions

Folder Description Term
D:\sitecore-nine-utilityclone repository from githubWorking Folder
E:\Sitecore-RepoSitecore’s prerequisite: Solr, Nssm, OpenJdkRepo Folder
C:\DevOpenJDK will be installed
E:\SitecoreSolr Solr & Nssm will be extracted
E:\Inetpub\wwwroot webroot webroot

Site Information

sc911 The prefix of Sitecore’s site
dev.local The postfix of Sitecore’s site
sc911.dev.localThe name of Sitecore’s site
sc911_identityserver.dev.localThe name of Identity Server site
sc911_xconnect.dev.localThe name of xConnect site
sc911_solr.dev.localThe Solr’s host name. We don’t use localhost in this case.

Certificates Information

This is the most interesting thing in this part. It generates 2 certificates in total. One is root cert which will be used to generate the subsequent certificates such as wildcard cert for domain *.dev.local.

Note:
Since we’re using wildcard certificate, so this cert is applied for all the sites, for instance, identity server, xconnect and so on

Root Cert at Cert:\LocalMachine\Root
WildCard Certificate at Cert:\LocalMachine\My

Those 2 certs are also export to pfx file which is found at [Working Folder]\Certificates

Prerequisites

Download the following items then put into Repo Folder

Getting Start

Let access the Working Folder; use any text editor to open xp0.configuration.ps1 file; then modify the following variables

$SitecoreSitePrefix     = "sc911"

$AssetsPath             = "E:\Sitecore-Repo"
$OpenJdkInstallPath     = "C:\Dev"
$SolrInstallRootPath    = "E:\SitecoreSolr"
$WebRoot                = "E:\Inetpub\wwwroot"

$SolrPort = "8721"

$SqlAdminUser       = "sa"
$SqlAdminPassword   = "[your-sa-password]"

Now, let’s open the PowerShell Window as Administrator; then execute the below command

  • Case-1: install within Sitecore’s prerequisites (i.e. SQLDacFramework and so on)
.\xp0-install.ps1 -WithPrequisites
  • Case-2: install Sitecore only (without prerequisites)
.\xp0-install.ps1

If the installation is correct

What did the script do?

  • Extract the Sitecore Installation Package; do some modification for SIF json files
  • Generate wildcard Certificate for domain *.dev.local
  • Install OpenJdk at C:\Dev folder; add JAVA_HOME and update PATH system variables
  • Then, install Solr as a service (within Nssm tool); enable SSL by applying wildcard certificate => no *.jks certificate anymore
  • Add the host name of Solr to hosts file – sc911_solr.dev.local
  • Start installing Sitecore’s site within https by default

What’s next?

After installed successfully, and make sure we can access the site at https://sc911.dev.local or https://sc911.dev.local/sitecore (with the legend credential admin/b). Then come to next part which install SPE & SXA, of course, still use sitecore-nine-utilities

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s