Hi all ,in this post we will see about sitecore 9 update 1 installation using powershell script.
Lets move,
PREREQUISITES
Windows 10
Sql Server 2014 or 2016 (for xDB)
IIS 8.5 > 10 (IIS 8 is not supported by SIF)
Jave Runtime Environment version 1.8 or higher
Powershell version 5.1
A Sitecore License
STEP 1 - INSTALL SOLR
Copy the powershell script from the below link
and save it as Install-Solr.ps1
Create a folder for solr as c:\solr
Update the following variables in the script:
The $JREVersion variable – this should be the same as your Java version
The $JREPath – this should be the path to your Java version
Save the file.
Open powershell with admin permissions and run the following command
Set-ExecutionPolicy RemoteSigned
Then run the script Install-Solr.ps1
STEP 2 - CREATE KEYSTORE
Run the following in command prompt with administrative privileges
Change the path to the executable based on the path of your JRE installation
“C:\Program Files\Java\jre-9.0.1\bin\keytool.exe” -genkeypair -alias solr-ssl -keyalg RSA -keysize 2048 -keypass secret -storepass secret -validity 9999 -keystore solr-ssl.keystore.jks -ext SAN=DNS:localhost,IP:127.0.0.1 -dname “CN=localhost, OU=Organizational Unit, O=Organization, L=Location, ST=State, C=Country”
After running the above command, a keystore file called solr-ssl.keystore.jks will be created in the current directory.
STEP 3 - GENERATE CERTIFICATE
Run the following in command prompt with administrative privileges.
Change the path of jre before running the command
“C:\Program Files\Java\jre-9.0.1\bin\keytool.exe” -importkeystore -srckeystore solr-ssl.keystore.jks -destkeystore solr-ssl.keystore.p12 -srcstoretype jks -deststoretype pkcs12
This will ask for a password. Enter the password as secret
STEP 4 - INSTALL CERTIFICATE
Double click on the generated solr-ssl.keystore.p12 file and follow the wizard to import the certificate. When you reach the Certificate Store window, make sure to place the certificate in the Trusted Root Certification Authorities.
STEP 5 - MOVE KEYSTORE AND CERTIFICATE TO SOLR
Move the generated certificate and keystore files (solr-ssl.keystore.jks, solr-ssl.keystore.p12) to C:\solr\solr-6.6.2\server\etc\
STEP 6 - ENABLE SSL IN SOLR
Edit the file C:\solr\solr-6.6.2\bin\solr.in.cmd
Uncomment properties starting with Solr_SSL_*
STEP 7 - TEST START SOLR
To start solr, run the following in command prompt with administrative privileges
C:\solr\solr-6.6.2\bin\solr.in.cmd -p 8984
Once successfully started up, you should be able to navigate to https://localhost:8984 to make sure that the instance is running.
If no errors are encountered and Solr started successfully, stop Solr by running the command:
C:\solr\solr-6.6.2\bin\solr.in.cmd stop -all
STEP 8 - SET UP SOLR TO RUN AS A WINDOW SERVICE
Run the following in command prompt with administrative privileges.
“C:\solr\nssm-2.24\win64\nssm.exe” install SOLR6
In the insatller window, Set the path to ‘C:\solr\solr-6.6.2\bin\solr.cmd’ ,startup directory to ‘C:\solr\solr-6.6.2\bin’, and Arguments to ‘start -f -p 8983’.
Enter the service name as SOLR, then click Install Service.
STEP 9 - PREPARE INSTALL FOLDER
i) Create an install folder on your machine, say,‘C:\Sitecore9-Install\resources’.
ii) Download the ‘Sitecore 9.0.1 rev. 171219 (WDP XP0 packages).zip’ install file from https://dev.sitecore.net and unzip the folder.
iii) Copy ‘Sitecore 9.0.1 rev. 171219 (OnPrem)_single.scwdp.zip’ and ‘Sitecore 9.0.1 rev. 171219 (OnPrem)_xp0xconnect.scwdp.zip’ from the unzipped folder to ‘C:\Sitecore9-Install\resources’
iv) Unzip ‘XP0 Configuration files 9.0.1 rev. 171219.zip’ and also copy the contents into: ‘C:\Sitecore9-Install\resources’.Lastly copy your Sitecore licence file into ‘C:\Sitecore9-Install\resources’ also.
STEP 10 - INSTALL SIF
Copy the scirpt from the following link : https://gist.github.com/fluxdigital/5bc46179bf5011fa3c193f05aaa7f176 and save it as Install-Sif.ps1 and run it with admin permissions in powershell.
STEP 11 - INSTALL SITECORE 9 UPDATE 1
https://gist.github.com/fluxdigital/50a1978a329c78596e8949643fdbb0b4 and save to your machine as Install-Sitecore9.ps1. It is from the official Sitecore 9 Update 1 install guide.
Edit the following paramaters:
$prefix : Name of your sitecore instance
$PSScriptRoot : set this to your install folder location, e.g: ‘C:\Sitecore9-Install\resources’
$SqlServer : Set this to the name of your local SQL Instance.
$SqlAdminUser : SQL DB username eg. ‘sa’
$SqlAdminPassword – Set the password for the user above
Run the script with the correct admin permissions.
This is very nice post im very like it and i appreciate you for good work keep it up it is very useful for me.
ReplyDeleteStruts Training in Chennai
Struts Training
Wordpress course in Chennai
Wordpress Training Chennai
Wordpress Training in Adyar
Wordpress Training in OMR
Struts Training in Chennai
Struts Training
Your style is very unique compared to other folks I've read stuff from. Many thanks for posting when you have the opportunity, blog Guess I will just book mark this site.
ReplyDeleteSelenium Training in chennai | Selenium Training in anna nagar | Selenium Training in omr | Selenium Training in porur | Selenium Training in tambaram | Selenium Training in velachery