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
- 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
- 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
- Verify that Solr can be browsed within HTTPS by open the browser and access the URL – https://localhosts:8983/solr
#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
- 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
- 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)
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
3- The most interesting resource – from Habitat (brand of Sitecore 9.0)