Setup Prerequisites
- Windows 10 or Window server 2012 and above
- Java Runtime Environment
- Windows PowerShell version 5.1 or later
- MS SQL Server 2016 SP1 or later
- .Net Framework 4.5.2 or later
- Web Deploy 3.6
- URL Rewrite 2.1
- SOLR 6.6.2
- NSSM
- Sitecore Installation Framework(SIF)
- Download Sitecore 9.0.2
Installation Steps
Install JDK & JRE if already install then set environemnt variable (This is required for Solr Installation)
- Type "Env" in search box then click on "Edit the system enviroment variable app"
- Click on Envirment Vaiables
- Set JAVA_HOME and JRE_HOME according to the figure, after that set the Path Variable for both (User and System)
Install Solr
- Extract Solr in any directory where you want to extract it.
- open command prompt with administrator mode and go to bin directory under solr directory.
- type command "solr start -p [port]" but remeber this port because we need this port is required for sitecore installation.
- open browser and type in address bar http://localhost:[port].
Install Solr as a window Service
Avoid the above steps to run the solr, we will install the service through NSSM. NSSM is a utility to install the window service
- Got o NSSM utility folder and type "nssm.exe install Solr" and then enter one screen will be open and set the paramter according to the figure
- Go to service and run the solr service
Setup HTTPS for solr because https is required for sitecore installation
- Download SolrSsl Power Shell file from git
- run this script in powershell as an administrator mode not in ISE
- Copy Certificate file "solr-ssl.keystore.jks" and "solr-ssl.keystore.p12" into "solr-6.6.2\server\etc" folder
- set below line in solr.cmd file(this file exists in bin folder under solr)
set SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks
set SOLR_SSL_KEY_STORE_PASSWORD=secret
set SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks
set SOLR_SSL_TRUST_STORE_PASSWORD=secret
- open browser and type in address bar https://localhost:[port].
How to solve solr installtion is issues
- Keytool issue : if installation failed due keytool.exe then check your environment setting and when you set the environment setting, remember close the powershell and open it again.
- Again you facing keytool issue then open normail powershell in administrator mode. we have 2 powershell, one is window powershell and other window powershell ISE. So we will use only powershell not ISE
- Certificate Issue : if you face certificate issue then remove the certificate file "solr-ssl.keystore.jks" and type sert into search bar, you will get 2 option one is user certificate and other is computer certificate. remove the certificate entry from both
Install Sitecore Installation Framwork(SIF)
Register-PSRepository -Name SitecoreGallery -SourceLocation https://sitecore.myget.org/F/sc-powershell/api/v2
Install-Module SitecoreInstallFramework -Repository SitecoreGallery -RequiredVersion 1.2.1
Remeber Later version not compatible with this version
Enable Contained Database Authentication
sp_configure 'contained database authentication',1
GO
RECONFIGURE
GO
Install Sitecore 9.0.2
- Download Sitecore package from the sitecore site
- extract the zip file in one folder like c:\sitecore
- you will get these files also
- one more file in the zip "Sitecore 9_sc9_install.ps1", open this file and set the paramter according to you. like Database setting, solr setting, hostname etc.. Run this file in powershell as an administrator
Successfull installation
- Open Browser and type http://sc9.sc/ for site and http://sc9.sc/sitecore for admin panel
Default Sitecore user : admin
password : b