Install Sitecore 9.0 update 1 – OnPremise

There are some resources that guide us to install Sitecore 9.0 (update 1). Generally, there are the following steps which are from Sitecore’s guidelines.

  • Install Solr 6.6.2
  • Setup Solr to run as Windows Service
  • Enable SSL for Solr
  • Install Sitecore Install Framework (SIF in short)
  • Install Sitecore via SIF
  • Run Post Steps

Fortunately, Habitat’s community has been developing a brand of Sitecore 9.0 within some PowerShell scripts that help us to be able automatically to run some steps from 3 to end which is from “Enable SSL for Solr” to “Run Post Steps”, we can find the detail information at  01-Getting-Started.

So, can we run all steps automatically? 

The short answer is “YES, WE CAN”. The long answer is we’ll install Solr via Docker, with this way, we can use PowerShell script to automate the full process. So, I decided to make this post within steps by steps to install a new instance of Sitecore 9.0 update 1. The scripts has been found at my Github’s repository which is mentioned in my Step-3.

 

My scripts bases on Habitat. So I’d like to thanks the Habitat’s community.

#### Let’s start to install

#1. Pre-Requisite

  • Add “IIS APPPOOL\DefaultAppPool” to the following groups

1- Performance Log Users

 

2- Performance Monitor Users

  • Microsoft PowerShell® version 5.0 or later

  • Java JRE 1.8 or higher

Notes: 

  • Add JAVA_HOME to Environment Variables

#2. Clone my repository on Github

  • Suppose that is cloned at – F:\github\sitecore-9.0-installation

#3. Starting Solr Docker

  • Before starting to install Solr via Docker, there are some required configuration.
    • First, because Solr’s data has been stored by mounted volume from Docker’s container. So it needs to be shared the drive from our machine in which the cloned repository is stored. For example, Drive F  from mine

  • Open PowerShell as Administrator,
    • Change the location to cloned repository folder
    • Then, execute the install-solr.ps1

  • Verify the result

  • Verify the SolrData folder has been initialized (*****)
    • Notes: This folder will be used to configure for XConnect-Solr; Sitecore-Solr in the next steps

 

#4. Copy Sitecore’s stuffs into cloned repository folder

  • Download Sitecore 9.0.1 rev. 171219 (WDP XP0 packages).zip

  • Extract this file; then copy all scwdp.zip files into build/assets folder
  • Copy the license.xml file to build/assets folder

#5. (Optional) Modify the configuration

  • The Site.PhysicalPath from mine is D:\inetpub\wwwroot which is defined in the following files

1- build\Certificates\sitecore-ssl.json

2- build\assets\sitecore-XP0.json

3- build\assets\xconnect-xp0.json

 

  • Also, the $webroot in settings.ps1

#6. Starting installation

  • Open PowerShell as Administrator, then execute the install-xp0.ps1 script

  • See the result after completed

#7. Finally, welcome to Sitecore 9.0 update 1 at – https://sc90.dev.local

#### Bonus point – Uninstall Sitecore 9.0 update 1 and Solr Docker

In order to uninstall completely Sitecore’s instance and also Solr Docker, it has the scripts to automate the process. Those scripts are also borrowed from Habitat with some modification from mine to match with my purpose.

First, open the PowerShell as Administrator, then change the location to cloned repository folder (i.e. F:/github/sitecore-9.0-installation)

#1. Uninstall Sitecore’s instance

  • Execute the script – uninstall-xp0.ps1

#2. Uninstall Solr Docker

  • Execute the script – install-solr.ps1 -remove

Notes:

  • In case you want to re-install Sitecore’s instance only. Just only Uninstall Sitecore’s instance and Install again.

Resources for reference

1- From Viet Hoang’s blogs, the first Sitecore MVP 2018 from Vietnam (our country)

A step by step guide for Sitecore 9 installation on your machine

Notes: He’s also updated the new guide for Sitecore 9.0 update 1

2- From the blogs of Perficient organisation. There are 2 parts

Part 1 – guide to install the basic things before installing Sitecore 9.0, they are Java SDK, Solr and so on

Part 2 – actually guide to install Sitecore 9.0, they based on installation guide from Sitecore

3- The most interesting resource – from Habitat (brand of Sitecore 9.0)

 

 

Advertisements

3 thoughts on “Install Sitecore 9.0 update 1 – OnPremise

    1. You’re welcome. It’s my honor when got your view. While following both your blogs and linkedin; I realizes that many things I’ve learnt from your in Sitecore world. Hope we get connected from now.
      Regards.

      1. I’m so glad to hear it :).

        I always hope that Sitecore developers from Vietnam will find something useful via my blog posts. Now, it’s even better. I’ve learnt from other Sitecore developers in Vietnam.

        Yeah, why not? Hopefully, we will incorporate soon :D.

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