Over the past few month, I had multiple opportunities to work with latest Sitecore Install Framework, my experience was very positive, and even though, I’ve seen more struggle with this new approach, I personally strongly believe that having the ability to script your environment provisioning is the correct way to go and it fits DevOps paradigm very well. There are few critical changes that we must understand before start provisioning of our Sitecore 9 instance. First, we need to secure communication between XDB and Sitecore website and second, we need to install Solr. To get started with 9 please review this Sitecore Compatability table and this one for Solr. Also, please review Sitecore Installation Guide as it is the most comprehensive source of information for Sitecore 9 installation.

  1. Server 2012 or 2016
  2. Sql Server 2016 SP1  or use SQL Azure
  3. .NET 4.6+ and ASP .NET 5.2.2+
  4. Solr 6.6.2 or 6.6.1. Older or newer versions of Solr will not work with Sitecore 

Prerequisites:

Before installing Sitecore we need to ensure our system is configured correctly. Sitecore Install Framework error messaging could be deceiving at a times and as such having proper system configuration is essential. I recommend starting with a fresh instance of Windows Server 2016 installed on Virtual Machine.

  1. Navigate to Server Manager->Dashboard and click on “Add Roles and Features”. Install IIS and .NET 4.6.2 as shown below.                                            
  2. Download and Install Web Platform Installer 5 and add Url Rewrite 2.1 module and WebDeploy 3.6 For hosting Servers modules.
  3. Install Microsoft® SQL Server® Data-Tier Application Framework (June 30 2016)( https://www.microsoft.com/en-us/download/details.aspx?id=53013)
  4. Install SQL Server 2016 SP1 with Mixed Authentication Mode
  5. Update Contained DB Authentication by running this SP:

  1. Install the Java JRE (http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html)
  2. Download and install Solr. (http://archive.apache.org/dist/lucene/solr/6.6.2/solr-6.6.2.zip)
  • Note:Newer versions of Solr will not work.
  • Unzip the archive to “C:\” (where it will create a folder called “Solr-6.6.2”)
  • Open a command prompt as an administrator and navigate to: C:\Solr-6.6.2\server\etc

 

Execute:

Check if  solr-ssl.keystore.jks file is created in ‘etc’ forlder

  • Run importkeystore command and use “secret” for the destination keystore password (plus confirmation prompt) and source keystore password prompts

Import(double click) generated certificate file solr-ssl.keystore.p12 that was created in the C:\Solr-6.6.2\server\etc directory. Match the values below when prompted:

Store Location: Local Machine
Password: “secret” (no quotes)
Certificate store: Trusted Root Certificate Authorities

 

  • Update the C:\solr-6.6.2\bin\solr.in.cmd file by pasting the following code block at the end of the file.
    Ensure this code block matches what you used as the certificate name and password during the certificate creation and installation process.

 

  • Run Solr:

(please considering running Solr as a windows service)

Important: Test Solr installation by navigating to this URL:   https://localhost:8983/solr/. Do not continue with Sitecore installation until Solr interface is shown.

Installing Sitecore

  1. Download and Unzip Sitecore files to a folder, called ‘resourcefiles’. Ensure that license file is placed in the root of the folder
  2. Create Install.ps1 script from the code below or copy it from here or from Sitecore Installation Guide

Install.ps1

Here an example:

  1. From the “C:\resourcefiles” directory, run the installer script from the (elevated) PowerShell console. .
  2. Test that Sitecore was installed correctly.

Visit http://sitecore901xp0.sc (the rendered version of your website)

 

Done!