Skip to content

Sitecore on Linux: a deployment overview

Operator overview of running Sitecore (XM Cloud and the containerized XP roles) on Linux — what is actually Linux-native, what still wants Windows, and the production patterns we operate.

Sitecore has been a Windows / IIS / SQL Server stack since the early 2000s. The current product line is in active transition to Linux: XM Cloud is a Kubernetes-based SaaS that runs the head as Linux containers, Sitecore Headless Services are .NET-on-Linux capable, and the classic XM/XP roles can run in containers under both Linux and Windows base images depending on which Sitecore version you’re on. This article is the operator’s overview of what “Sitecore on Linux” actually means in 2026, where the boundaries are, and what we run for clients that picked Sitecore but want to leave Windows hosts behind.

How to verify

A working Sitecore Linux deployment looks like:

kubectl get pods -n sitecore
# NAME                READY   STATUS    RESTARTS
# cm-7c8d9b-xxxxx     1/1     Running   0
# cd-5f6e7a-yyyyy     1/1     Running   0
# id-4b3c2d-zzzzz     1/1     Running   0
# xm-rendering-...    1/1     Running   0

curl -sI https://cm.example.org/sitecore/ | head -1
# HTTP/2 200 (Content Management admin)

curl -s https://cd.example.org/sitecore/api/layout/render/jss?item=/&sc_apikey=... \
  | jq '.sitecore.context.site.name'
# "JssApp"

# SQL Server (or the new Azure SQL/PostgreSQL preview targets)
sqlcmd -S sql.example.org -U sa -P '<pwd>' -Q "SELECT name FROM master.sys.databases WHERE name LIKE 'sitecore_%'"

The honest answer is “you mostly verify Sitecore on Linux by checking the container pods, not the host.” If you have a host running Sitecore directly on Linux today, you’re on a custom path.

What’s happening

Sitecore has three product lines that affect “Linux story” differently. Sitecore Experience Platform (XP) is the classic stack — Content Management role, Content Delivery role, Identity Server, xConnect, processing, reporting. As of Sitecore 10.x, all those roles ship as containers; the official base images are Windows Server Core / IIS, with Linux base images supported on 10.3+ for the headless-only deployments (no Experience Profile, no analytics). Sitecore XM Cloud is a SaaS rebuild — the Content Management head runs as Linux containers in a Sitecore-operated cluster, and you deliver content to whatever Next.js / React frontend you build on top. Sitecore Headless Services (the JSS / SXA renderers) is a .NET app you deploy yourself; on .NET 8 it runs cleanly on Linux.

The database tier is the stubbornest. SQL Server is still the default; Sitecore has previewed PostgreSQL support but it is not yet GA across all SKUs. On managed cloud, Azure SQL is the production path; on AWS, RDS for SQL Server. Self-hosting SQL Server on Linux works (SQL Server 2022 has Linux support), but it’s still SQL Server in the operational sense — your DBA isn’t suddenly using Postgres tooling.

The most common Sitecore-on-Linux deployment we see today is: Sitecore XM Cloud (SaaS, vendor-operated) for the head, a Next.js or Astro frontend hosted on Linux or Vercel for the delivery side, GitHub Actions for CI/CD. That gives you a fully Linux operating model with Sitecore providing the head.

The procedure (for the headless-only XM topology)

  1. Decide the topology. Three plausible Linux-friendly options:

    • XM Cloud (recommended for new builds): Sitecore hosts the CM head; you build a Next.js frontend.
    • XM (Linux containers): You run CM and CD as Linux containers in Kubernetes. SQL Server still required.
    • XP (mixed): CM/CD as Linux containers; xConnect and reporting on Windows containers, because the .NET Framework dependencies haven’t moved.
  2. Provision the data tier. SQL Server 2022 on Linux or Azure SQL. The DB schema initialization is done by Sitecore’s init Helm chart on Kubernetes, or by sitecore-cm-init on Docker Compose.

  3. Deploy the containers. For XM headless on Kubernetes, use the Sitecore Helm charts:

    helm repo add sitecore https://charts.sitecore.com
    helm install sitecore-xm sitecore/sitecore-xm \
      --namespace sitecore --create-namespace \
      --set images.cm=scr.sitecore.com/sxp/sitecore-xm1-cm:10.3.1-ltsc2022 \
      --set sqlServer.host=sql.example.org \
      --set licenseSecret=sitecore-license

    The license is a Sitecore-issued XML file you mount as a secret.

  4. Build a frontend. With JSS:

    npx create-sitecore-jss nextjs
    # answer prompts: app name, Sitecore endpoint, API key

    The frontend is a standard Next.js app — deploy it on Vercel, Fly, or your own Kubernetes.

  5. Wire the Sitecore API key. In Sitecore CM, create a new API key under /sitecore/system/Settings/Services/API Keys/. Pass the GUID to the frontend as SITECORE_API_KEY. The frontend hits https://cd.example.org/sitecore/api/layout/render/jss?item=...&sc_apikey=... for every page.

  6. Set up the publishing workflow. Sitecore content is staged on CM and “published” to CD. The frontend reads from CD. After every publish, run a webhook from Sitecore to your frontend’s ISR revalidation endpoint:

    // app/api/revalidate/route.ts
    export async function POST(req: Request) {
      // Verify the Sitecore webhook signature
      // ...
      revalidatePath('/[[...slug]]', 'page');
      return Response.json({ ok: true });
    }
  7. Monitor and back up. SQL Server backups via your existing DBA process; the Sitecore content tree lives in those databases. On Linux containers, persistent volumes are minimal because everything stateful is in SQL Server.

Operational notes

  • Sitecore licenses are GUID-stamped and node-locked in some SKUs; container scaling beyond the licensed core count silently degrades performance. Confirm core counts with Sitecore before sizing.
  • The Linux container support matrix changes between Sitecore versions — always check the official compatibility table before picking base images.
  • xConnect and Processing still want Windows on most current versions; “Sitecore on Linux” usually means “Linux for CM/CD, Windows for the analytics tier” in classic XP topologies.
  • XM Cloud customers do not operate the CM tier — that’s a SaaS service. You only operate the frontend, the CI/CD, and any custom helper services.
  • The JSS rendering engine has its own version compatibility with Sitecore CM — bump them together or expect “Layout not found” errors that look like configuration but are version drift.

For organizations on Sitecore who want a Linux operating model, Stack Harbor runs the practical path — XM Cloud or containerized XM, a Next.js frontend on Linux runners, CI/CD on GitHub Actions, SQL Server (or managed Azure SQL) backed up — so the marketing team uses Sitecore’s editor and the engineering team operates Linux for everything else. That model lives under managed operations, with related Umbraco on Linux notes alongside.