This article talks about way to install Sitecore9 in single script execution, it includes installation with SOLR version with defined SSL port and installation of complete sitecore website, xconnect platform.
I was thinking of a blog to start with and definitely, Sitecore9 installation steps will definitely the perfect candidate this time. As you can find it many other blogs it includes a lot of steps I have gone through those and got stuck many time. Initially planned to share my own installation steps in my blog, but then thought about creating a single script file which does all those work for us you can install sitecore 9 in just a single click once u have installed correct tools in your machine. This uses “Packages for XP Single” package as its mainly for sitecore developers like me who used to do the sitecore installation with just one file execution. Just run this power shell script and all is all set for u. This script is resulted file of information which I got from many other blogs and reference links are attached below. So before executing this script download and install following tools in your local machine.
- Powershell 5.0
- MS SQL Server 2016 SP1
- MS SQL Management Studio
- .Net Framework 4.6.2
- Web Deploy 3.6
- Java Runtime Environment
- SQL Server® Data-Tier Application Framework
- Packages for XP Single (On Premises deployment)
Download file and keep it in the set-up folder and the file is available as shown below on the download page.
9.Install IIS on your local machine
- Download the following package from script GitHub and extract to same folder as shown below.
Edit InstallSitecoreInstance.ps1. Edit the file and Update following properties in that script file.
$SqlServer = “SQL Server Name”
$SqlAdminUser = “SQL Server admin user Id”
$SqlAdminPassword=”SQL Server Password”
$SolrVersionNumber =’6.6.2′ #Version should be 6.6.2 or later
Open powershell in Run As Administrator mode. Go to instance folder execute this script file as shown below.
if you are getting the error “File [.ps1] cannot be loaded because the execution of scripts is disabled on this system. Please see “get-help about_signing” for more details.” please execute the below line on PowerShell window.
Set-ExecutionPolicy -Scope CurrentUser Unrestricted
This installation deploye ur solr instance in ur set-up folder and you need to change following parameter if you need to deploy to other folder.
Update PostInstallScripts.sql to perform the post Installation scripts on sql server
Troubleshetting steps are listed below and which will help you to resolve issues you are getting while using this script.
Trouble shooting steps
This script file is result of information which I got from many blogs ralated to Sitecore9 and there are many so thank you Sitecore community for providing us details.