Sitecore 10.2 Installation using Windows PowerShell

Hello everyone. Another blog post is here. This time we will see, how we can install Sitecore 10.2 locally using Windows PowerShell.

Before proceeding for installation, there are some software's which will be required to be installed on system.

Required Software:

  • Visual Studio 2019
  • SQL server 2017 and above
  • .NET Framework 4.8 and above
Once installed, we can proceed with Sitecore 10.2 installation.

Step 1: Open Windows PowerShell (run as administrator)

Step 2: Run Command:  Set-ExecutionPolicy -Scope CurrentUser Unrestricted and Select Y

Step 3: Check if SIF framework is available: Get-Module -Name SitecoreInstallFramework -ListAvailable

Step 4: If 2.3.0 is available, skip step 5

Step 5: If yes, then check the version. For Sitecore 10.2 the version should be 2.3.0. If 2.3.0 is not available then update your SIF version using command: Update-Module SitecoreInstallFramework -force

Step 6: Now Enable the Contained Database Authentication in SQL using below script :

            EXEC sp_configure 'contained', 1;RECONFIGURE;

Step 7: Create a new folder D:\Users\SSahu31\Sitecore10Upgrade\sc1020install. Create according to your folder structure

Step 8: Get the XP packages from Sitecore site



Step 9: Copy / paste the following ones to D:\Users\SSahu31\Sitecore10Upgrade\sc1020install

  • Sitecore 10.2.0 rev. 006766 (OnPrem)_single.scwdp.zip
  • Sitecore 10.2.0 rev. 006766 (OnPrem)_xp0xconnect.scwdp.zip
  • Sitecore.IdentityServer 6.0.0 rev. 00301 (OnPrem)_identityserver.scwdp.zip

Step 10: Unzip XP0 Configuration files 10.2.0 rev. 006766.zip and copy / paste all files to D:\Users\SSahu31\Sitecore10Upgrade\sc1020install



Step 11: Now open the windows PowerShell again in admin mode

Step 12: Navigate to the D:\Users\SSahu31\Sitecore10Upgrade\sc1020install folder

Step 13: We will be installing the Sitecore perquisites using command: 

              Install-SitecoreConfiguration -Path prerequisites.json

Step 14: After installation. Close the PowerShell window and again reopen it using admin mode.

Step 15: Install SOLR 8.8.2 if not yet

Step 16: Edit the Solr-SingleDevloper.json file with required parameters. Refer the below screenshot for the changed value. You can change it to your needs



Step 17: Navigate to your installation folder in windows PowerShell and execute below command to install Solr :  Install-SitecoreConfiguration -Path Solr-SingleDeveloper.json

Step 18: Copy / paste your Sitecore license file license.xml to D:\Users\SSahu31\Sitecore10Upgrade\sc1020install

Step 19: Open XP0-SingleDeveloper.ps1 file where we need to edit our required parameters. You can refer below screenshot for your reference.


Step 20: Once all changes are done execute the query from install folder:  .\XP0-SingleDeveloper.ps1

Step 21: After Successful installation verify all the changes.

In next part we will see how we can add SXA compatible version and Sitecore PowerShell required for the same.

Thanks for reading and Happy learning.

Comments

Popular posts from this blog

Sitecore XM Cloud Form Integration with Azure Function as Webhook

Automate RSS Feed to Sitecore XM Cloud: Logic App, Next.js API & Authoring API Integration

Create and Fetch Content From Sitecore Content Hub One using GraphQL and React