PostHog

Deploy PostHog on a VPS in One Click

Web analytics

Open-source product analytics platform for tracking user behavior, session replays, and feature flags — fully under your control.

  • Ready in ~10 min
  • Free installation
  • We handle the setup
At a glance
Version
Latest
Operating system
Ubuntu Server 24.04 LTS
Minimum RAM
4 GB
License
MIT
Addressing
IPv4, IPv6
GitHub
40,000
Deployment~10 min
Open source & self-hosted
VPS plans

Choose a VPS plan for PostHog

Blazing-fast NVMe drives and powerful processors. Take a ready-made plan or build the configuration yourself.
Minex
Perfect for personal projects and small websites.
€3.20/mo
Save €0.80 per month

  • 1 vCPU core
  • 1 GB DDR5 RAM
  • 20 GB NVMe SSD
  • Full root access
  • 1 dedicated IPv4
  • 1 TB traffic
Basex
A great balance of power and affordable price.
€4.80/mo
Save €1.20 per month

  • 2 vCPU cores
  • 2 GB DDR5 RAM
  • 40 GB NVMe SSD
  • Full root access
  • 1 dedicated IPv4
  • 2 TB traffic
Most popular
Corex
For growing applications and businesses.
€7.20/mo
Save €1.80 per month

  • 4 vCPU cores
  • 4 GB DDR5 RAM
  • 50 GB NVMe SSD
  • Full root access
  • 1 dedicated IPv4
  • Unlimited traffic
Midex
Resources for high-load projects.
€9.60/mo
Save €2.40 per month

  • 4 vCPU cores
  • 6 GB DDR5 RAM
  • 60 GB NVMe SSD
  • Full root access
  • 1 dedicated IPv4
  • Unlimited traffic
Proex
Maximum power and scalability.
€12.00/mo
Save €3.00 per month

  • 6 vCPU cores
  • 8 GB DDR5 RAM
  • 70 GB NVMe SSD
  • Full root access
  • 1 dedicated IPv4
  • Unlimited traffic
Scalex
Resources for scaling.
€16.00/mo
Save €4.00 per month

  • 6 vCPU cores
  • 10 GB DDR5 RAM
  • 150 GB NVMe SSD
  • Full root access
  • 1 dedicated IPv4
  • Unlimited traffic
Maxex
A large reserve of power.
€44.00/mo
Save €11.00 per month

  • 8 vCPU cores
  • 16 GB DDR5 RAM
  • 200 GB NVMe SSD
  • Full root access
  • 1 dedicated IPv4
  • Unlimited traffic
Apex
The top configuration.
€79.99/mo
Save €20.00 per month

  • 16 vCPU cores
  • 32 GB DDR5 RAM
  • 400 GB NVMe SSD
  • Full root access
  • 1 dedicated IPv4
  • Unlimited traffic

What you can do with PostHog

PostHog is an open-source product analytics suite built for engineering and product teams who need a single tool instead of five separate services — event tracking, session replay, and feature flags all in one place.

What separates PostHog self hosted from Mixpanel or Amplitude is that raw events, session recordings, and API keys stay on your own server, not a vendor's cluster — a real factor if you handle EU user data under GDPR. Choosing hosting for PostHog on a dedicated VPS also avoids the per-event billing that adds up fast once a product gets real traffic, replacing it with one predictable server cost.

The applications screen of the control panel with one-click install

PostHog features

A server surrounded by app icons — applications running on a VPS

A PostHog installation ships as a single Docker-based stack, so every core analytics feature is available from day one without buying separate plugins.

01

Event-based analytics

Capture custom events and user-level actions across web and mobile products.

02

Session replay

Watch recordings of real user sessions with configurable masking for sensitive fields.

03

Feature flags

Roll out new functionality to a subset of users or run A/B experiments before a full release.

04

Funnels and cohorts

Trace where users drop off in a conversion flow and group them by shared behavior.

05

Heatmaps and autocapture

See clicks and pageviews automatically, without manually instrumenting every button.

06

Surveys

Collect in-app feedback tied directly to the same user and event data.

07

Data warehouse sync

Export events to BigQuery, Redshift, Snowflake, or S3 for deeper analysis.

Requirements

Which server to run it on

Minimum requirements for PostHog and the configuration worth starting with.
Minimum
  • CPU2 vCPU
  • Minimum RAM4 GB
  • Disk40 GB
Recommended
VPS Corex
  • CPU4 vCPU
  • Minimum RAM4 GB
  • Disk50 GB

Installation is free — you only pay for the server

Getting started

How to deploy PostHog

Three steps and the app is running on your server.
Step 1
Choose a server

Pick a plan with at least the RAM PostHog's hobby deployment recommends — its stack runs Postgres, ClickHouse, and several background workers alongside the app itself, so 2GB is workable but 4GB gives real headroom.

Step 2
Pick the app

Select PostHog in the app list to install PostHog on VPS automatically — Leneex spins up the full Docker Compose stack for you, so there's nothing to configure manually beforehand.

Step 3
Get your credentials

After the PostHog one click install finishes, open the server's address in a browser and create your organization and first admin account directly in the setup wizard — there's no separate password to look up.

Why us

Why Host PostHog on Leneex

Speed, protection and support you can rely on — on every plan, with no hidden limits.
Deployment speed
PostHog's hobby stack alone wires together the app, Postgres, ClickHouse, Redis, and background workers; assembling that by hand from a docker-compose file easily eats an evening. One-click deploy on Leneex turns it into a single click.
Free installation
PostHog Cloud bills per event once you're past the free tier, so every extra euro spent on setup fees is money better left for actual usage. Leneex doesn't charge for deploying the stack itself.
DDoS protection
The JavaScript snippet PostHog uses for autocapture sits on every public page of your app, so your instance's API endpoint gets exposed to the same traffic as the product itself. Built-in DDoS protection keeps a spike or attack from taking analytics ingestion down with it.
Control and support
PostHog itself explicitly offers no support or guarantees for self-hosted deployments, so if a ClickHouse container misbehaves at 2 a.m., the vendor won't help. Root access, IPMI, API, and Leneex engineers on call around the clock cover exactly that gap.
99.9% uptime with SLA compensation
PostHog collects events continuously, and every minute your instance is down is a gap in funnels, cohorts, and retention data that can't be reconstructed afterward. SLA-backed uptime protects the completeness of that data, not just dashboard availability.
Flexible payment
Teams running PostHog self hosted are usually doing it to escape unpredictable per-event Cloud invoices, so paying for the server itself shouldn't reintroduce that friction. Leneex accepts Visa/Mastercard, crypto, and invoicing for legal entities.
What to choose

PostHog: Self-Hosted vs Cloud — Which to Choose

We compare cost, control over your data and limits, so the choice is an informed one.
PostHog Cloud
Self-hosted on LeneexRecommended
Resources and limitsShared infrastructure, a free monthly event allowance, then billed per event beyond itDedicated CPU/RAM for your instance only; event volume capped only by hardware
Control and accessUI and API access only, no access to underlying infrastructureRoot access to the server, free to tune ClickHouse/Postgres config, install any plugin
Feature limitsSome features (certain enterprise capabilities, longer data retention) are locked to paid Cloud plansFull open-source feature set, not gated by a plan
ScalingScales automatically but tied to your plan and event volumeUpgrade the VPS plan manually with a click
CostGrows with event count — the bill shifts month to monthFixed VPS price regardless of event volume
Who it fitsTeams without dedicated DevOps who value zero ops overhead over infrastructure controlProducts with predictable or high event volume and data-ownership requirements

For a product already generating meaningful traffic, self hosted PostHog on a VPS usually wins on cost — you trade a growing per-event invoice for one fixed server bill, plus full control over where the data physically sits. PostHog Cloud still makes sense early on or for teams that would rather not run Docker containers at all.

Frequently Asked Questions about PostHog on VPS

What people ask most about PostHog and our servers.

  • PostHog doesn't offer a built-in Cloud-to-self-hosted migration tool, so moving over means re-pointing your tracking snippet or SDK at the new instance; carrying over historical events requires exporting them separately first.

  • Upgrading RAM or CPU on your Leneex plan doesn't touch your PostHog data — the containers restart with more resources allocated, and ClickHouse simply has more headroom for larger event volumes.

  • Yes — once you point a domain at your server, Leneex issues a free SSL certificate for it, which matters here since both your admin login and PostHog's tracking snippet need to run over HTTPS.

  • PostHog's own guidance is that a hobby self-hosted deployment comfortably scales to roughly 100,000 events per month before performance starts to suffer — past that volume, plan on upgrading the server tier.

  • You are — PostHog doesn't publish tagged releases for self-hosted instances, so new versions are pulled manually by updating the Docker image tag and restarting the stack; Leneex gives you root access to do this whenever you choose.

What's already configured

After the one-click install finishes, the full PostHog hobby stack is already running: the PostHog application itself alongside PostgreSQL for account and configuration data, ClickHouse for event storage, and Redis for caching and background jobs, all wired together and started automatically. Everything restarts automatically if the server reboots, so there's no need to start the stack manually after a maintenance window.

First login

Open your server's domain or IP address in a browser — PostHog doesn't ship with a default admin password to look up, because the first visit takes you straight into a setup wizard where you create your organization, project, and first admin account yourself. Use a domain with SSL already attached before this step, since the credentials you set travel over that connection.

Hobby deployment specifics

The self-hosted build isn't a separate stable release — PostHog pushes the same commits to Cloud and self-hosted through one CI/CD pipeline, so there's no tagged version to pin your instance to. PostHog's own documentation states this deployment path is meant to comfortably handle up to roughly 100,000 events a month; past that, expect to either resize the VPS or consider PostHog Cloud for the ingestion layer.

PostHog also states plainly that it offers no official support or uptime guarantees for self-hosted installs — Leneex's own engineers and root access become the practical safety net instead. One more detail worth knowing: the domain PostHog uses to build links inside emails and webhook payloads gets set during install, so moving to a different domain later means updating that setting rather than expecting it to update itself.

Deploy PostHog in about 10 minutes

Choose a server — we do the rest: install, configure and send you the credentials.