Sitecore 10, What’s new, Updates, Installation and Troubleshooting

With every new Sitecore version,
comes the new installation.

With every new Sitecore version, there are frequent updates with every version. Sitecore recently released its new version Sitecore 10 on 4th of July. There are significant changes that stands out the Sitecore in the Technology World. These changes may be in terms of enhancements, patches, updates, new technological advancements or may be improvements.

The core focus of Sitecore Platform lies not only in product updates and enhancements but to make the product improved, flexible development and deployment options with the trendy market technologies, increasing the product usability without compromising the performance.

Whats new in Sitecore 10

  • Sitecore Container – From .exe to SIF to SIA, now the trend is for dockers.
  • ASP.NET Core – another new option to boost up the app development.
  • Sitecore CLI – for standardizing headless serialization for TDS and Unicorn, for faster deployments.
  • Audience Analytics Filters – to be more powerful with personalization with audience engagement and segmentation
  • HTML Email Templates for EXM – More options to craft email newsletters based on tempaltes.
  • Horizon Editing – Advancing the horizon with multilingual and multisite edit capabilites.
  • Salesforce Marketing Cloud (SFMC) Connector – to interact xDB data with Salesforce Marketing Cloud.
  • Marketing Automation – engage customers with automated campaigns
  • GDPR compliance – GDPR compliance polices and authentic users.

How to install Sitecore 10

As a Developer, there are certain options you can setup you Sitecore instance on. May it be Docker containers, VM or a developer machine, along with the other deployment options like azure PaaS and IaaS.

Install Sitecore 10 with Docker

The installation for Sitecore 10 with Docker is pretty straight forward. (If you already have idea with dockers) You can easily setup the Sitecore instance by following the documentation for the Installation Guide for a Developer Workstation with Containers XP10.0.0 and you are good to go. I set up one with this.

Download and Install Prerequisites

  • Valid Sitecore License
  • mkcert.exe
  • Docker Desktop (Switched to Windows container mode)
    Install with this command choco install docker-desktop -y

After downloading the Container Deployment Package extract it.

Setting up the base for the instance

Browse to the folder for the required topology you need to and modify the .env file

COMPOSE_PROJECT_NAME=sitecore-xp0
SITECORE_DOCKER_REGISTRY=scr.sitecore.com/sxp/
SITECORE_VERSION=10.0.0-ltsc2019
SITECORE_ADMIN_PASSWORD=b
SQL_SA_PASSWORD=Sitecore!0
TELERIK_ENCRYPTION_KEY=Y+$`{GFXIbrA:25IXwq~b\|Er6u<_C@Dj.:AHof>`z~RmcQw~vaU>%}s[43v$8DOg.\c[Ie)EapO}Ny877#UMYfLoAM>x!_L$=`Pg[&5`cjx}Syhnwd*8vXT\=H*@V*Y
SITECORE_IDSECRET=0Y8R2a1QUwTZ1VtkDLWKFiU9w0ECVPwUjNTrvM6MRYs13pBjiv05JAqyAm5gxjuA
SITECORE_ID_CERTIFICATE=SitecoreIdentityTokenSigning.pfx
SITECORE_ID_CERTIFICATE_PASSWORD=Sitecore!0
SITECORE_LICENSE=c:\inetpub\wwwroot\app_data\license.xml
CM_HOST=xp0cm.localhost
ID_HOST=xp0id.localhost
TRAEFIK_IMAGE=traefik:v2.2.0-windowsservercore-1809
TRAEFIK_ISOLATION=hyperv
ISOLATION=default

Place license file in the folder to avoid errors as recommended in the PDF. c:\inetpub\wwwroot\app_data\license.xml

Identity Server token signing certificate

As the identity server runs on SSL, you need to make signed certificate for it.

Place the downloaded mkcert-v1.4.1-windows-amd64.exe in the topology folder you are working on and rename it to only mkcert . Now run these commands:

.\mkcert.exe -install del /Q /S traefik\certs\*
.\mkcert.exe -cert-file traefik\certs\xp0cm.localhost.crt -key-file traefik\certs\xm1cm.localhost.key "xp0cm.localhost"
.\mkcert.exe -cert-file traefik\certs\xp0id.localhost.crt -key-file traefik\certs\xp0id.localhost.key "xp0id.localhost"

The certificates for your Sitecore instance are now created.

Browse to .\traefik\certs from the topology you are on and install the certificates by clicking on them and clicking Install Certificate.

Generate TLS/SSL certificate

In order to generate TLS/SSL certificate, run the following commands in Powershell as Administrator mode.

$newCert = New-SelfSignedCertificate -DnsName "localhost" -FriendlyName "Sitecore IdentityToken Signing" -NotAfter (Get-Date).AddYears(5) 
Export-PfxCertificate -Cert $newCert -FilePath .\SitecoreIdentityTokenSigning.pfx -Password (ConvertTo-SecureString -String "Test123!" -Force -AsPlainText) 
[System.Convert]::ToBase64String([System.IO.File]::ReadAllBytes((Get-Item .\SitecoreIdentityTokenSigning.pfx))) | Out-File -Encoding ascii -NoNewline -Confirm -FilePath .\SitecoreIdentityTokenSigning.txt

Running up the Containers

Now everything required is ready. Now run the following command from Powershell as Administrator mode from the topology folder you are in.

docker-compose up

Finally


Install Sitecore 10 with Sitecore.DevEx.Templates

A very short guide to install the Sitecore 10 Sitecore.DevEx.Templates in docker containers.

dotnet new -i Sitecore.DevEx.Templates --nuget-source https://sitecore.myget.org/F/sc-packages/api/v3/index.json
dotnet new sitecore.aspnet.gettingstarted -n MyProject
cd .\MyProject\
.\init.ps1 -InitEnv -LicenseXmlPath C:\license\license.xml -AdminPassword b
.\up.ps1

In case of trouble, make sure to empty the $env:SITECORE_LICENSE variable, if you had previous installations. Just run this command before running .\up.ps1

$env:SITECORE_LICENSE = '' 

Install Sitecore 10 with SIA

This is the very same as the previously introduced GUI based Sitecore installations, first introduced in the Sitecore 9.2 and 9.3. The Sitecore Installation Assistant follow the Sitecore Installation Framework, which can also be run as independent from Powersell. For installing Sitecore 10 you need to update the SIF version to 2.3.0. Only the SIF and prerequisiteare a bit changed which are catered while you install the prerequisite with SIA.

I would prefer to remove SIF old version before proceeding with the installation, or you might face a couple of issues.

Get-InstalledModule -name "SitecoreInstallFramework" -AllVersions
Uninstall-Module -Name "SitecoreInstallFramework" -AllVersions

Before you start with it, make sure you have the following prerequisite installed.

So if you are lazy and don’t want to put effort and get your instance ready. I suggest you go with the GUI based installation. M

Follow my previous blog post for how to install Sitecore 9.3, there are also troubleshooting options available for switching and keeping multiple SIF versions.


Install Sitecore 10 in VM

You can also install the Sitecre in a Virtual machine following the very same guide you have for the SIA above.

This is a case scenario for the Mac Users, who want to stick to the iOS. So they create a VM Machine with Windows based OS and install Sitecore there.

You can also create a VM specific to any client or Sitecore instance in order to avoid the version conflicts and dependencies. Or probably a VM hosted on azure.


Feel free, to use it and share your feedback if you find it useful. Cheers!

If you are wondering for the previous Sitecore Installations like 9.0, 9.1 and 9.3, don’t forget to check my previous articles.

Sitecore 9.0.x installation, How I do it (Download, Install, Validate and Done)
What’s new in Sitecore 9.1 and How to install it
Sitecore 9.3, Updates, Troubleshooting and Installation using Sitecore Installation Assistant (SIA)

Reference Links

Sitecore Experience Platform 10

Images

https://pixabay.com/

3 thoughts on “Sitecore 10, What’s new, Updates, Installation and Troubleshooting

  1. To the point article so very easy to follow.
    Looks like a typo here instead of xp0cm its xm1cm while creating identity server certs.
    ———————————-
    .\mkcert.exe -cert-file traefik\certs\xp0cm.localhost.crt -key-file traefik\certs\xm1cm.localhost.key “xp0cm.localhost”
    ——————————

Share what's in your Mind :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.