Skip to content

Installing Plone 6 on Ubuntu with Zope and ZEO

Operator install of Plone 6 with the classic Zope/ZEO stack on Ubuntu, Nginx in front, plus the Volto frontend and the operational notes for a long-lived Plone site.

Plone is a Python-based CMS with twenty-five years of release history. The current line (Plone 6) ships in two flavors: “Plone Classic UI” (server-rendered via Zope page templates) and “Volto” (a React frontend that consumes Plone’s REST API). The install is pip install Plone against a Python venv, plus a ZODB storage layer — usually ZEO for production so multiple Zope instances can share the database. This article walks through a Plone 6 install on Ubuntu 22.04 with ZEO, Nginx in front, and an optional Volto frontend.

How to verify

A correctly running Plone 6 deployment shows:

ps -ef | grep -E 'zope|zeo|node' | grep -v grep
# zeo: runzeo -C etc/zeo.conf
# zope: bin/runwsgi -v etc/zope.ini
# node: yarn start (if Volto)

curl -sI https://example.org/ | head -1
# HTTP/2 200

curl -s "https://example.org/++api++/" -H "Accept: application/json" | jq '.[0]'
# Plone REST API responds

ls -la /var/lib/plone/var/filestorage/
# -rw------- 1 plone plone Data.fs
# -rw------- 1 plone plone Data.fs.index
# -rw------- 1 plone plone Data.fs.lock

du -sh /var/lib/plone/var/filestorage/Data.fs
# 1.2G (the ZODB grows over time; pack regularly)

If Data.fs is growing faster than your content (e.g. 50 MB/day on a static-content site), undo log is accumulating — run zopepack (the maintenance task) to compact it.

What’s happening

Plone runs on top of Zope, a Python application server with an object database (ZODB) instead of SQL. Everything is an object — content, users, permissions, configuration — and the entire site state lives in a single file (Data.fs) by default. ZEO (Zope Enterprise Objects) is the multi-process layer: one ZEO server holds the ZODB, and many Zope clients connect to it for reads and writes. For single-server installs, Plone runs Zope without ZEO; for any multi-worker deployment, ZEO is mandatory.

A Plone 6 install has two halves. The backend (Python + Zope + ZODB) serves the REST API and, if you choose the Classic UI, full HTML pages. The frontend (Volto) is a React SSR app written in Next.js’s predecessor (Razzle) that consumes the REST API and renders pages — including a polished editor experience. You can run Classic UI only, Volto only, or both side-by-side during migration.

The “package” Plone is installed from is the umbrella Plone distribution on PyPI, which pins the matching plone.* modules at known-good versions. Manual pip install of individual packages will work until it doesn’t — the supported upgrade path is “uninstall Plone, install the new Plone version, restart, click Upgrade in the control panel.”

The procedure

  1. Install Python 3.11 and a venv. Plone 6 supports 3.9-3.12; pick 3.11 for stability.

    sudo apt update
    sudo apt install -y python3.11 python3.11-venv python3.11-dev \
      build-essential libxml2-dev libxslt1-dev libjpeg-dev zlib1g-dev \
      nginx curl
    sudo useradd -m -s /bin/bash plone
    sudo -iu plone
    python3.11 -m venv /home/plone/venv
    source /home/plone/venv/bin/activate
  2. Install Plone using cookiecutter. The recommended bootstrap:

    pip install -U pip cookiecutter
    cookiecutter https://github.com/plone/cookiecutter-zope-instance
    # Answer prompts: instance name, port, ZEO yes
    cd zinstance
    pip install -r requirements.txt -c constraints.txt
  3. Configure ZEO. Cookiecutter generates etc/zeo.conf — adjust the bind address (127.0.0.1:8100) and storage path:

    <zeo>
      address 127.0.0.1:8100
    </zeo>
    <filestorage>
      path /var/lib/plone/var/filestorage/Data.fs
    </filestorage>
  4. Configure the Zope client (etc/zope.ini). The interesting knobs:

    [server:main]
    use = egg:waitress#main
    host = 127.0.0.1
    port = 8080
    threads = 4
  5. Add systemd units. Two services — ZEO storage and Zope app:

    sudo tee /etc/systemd/system/plone-zeo.service <<'EOF'
    [Unit]
    Description=Plone ZEO server
    After=network.target
    [Service]
    Type=simple
    User=plone
    WorkingDirectory=/home/plone/zinstance
    ExecStart=/home/plone/venv/bin/runzeo -C etc/zeo.conf
    Restart=always
    [Install]
    WantedBy=multi-user.target
    EOF
    
    sudo tee /etc/systemd/system/plone-zope.service <<'EOF'
    [Unit]
    Description=Plone Zope client
    After=plone-zeo.service
    Requires=plone-zeo.service
    [Service]
    Type=simple
    User=plone
    WorkingDirectory=/home/plone/zinstance
    ExecStart=/home/plone/venv/bin/runwsgi -v etc/zope.ini
    Restart=always
    [Install]
    WantedBy=multi-user.target
    EOF
    
    sudo systemctl daemon-reload
    sudo systemctl enable --now plone-zeo plone-zope
  6. Create the Plone site. First-time bootstrap via the @@plone-addsite view:

    curl -s "http://127.0.0.1:8080/manage_addProduct/CMFPlone/addPloneSite" \
      -u admin:admin -X POST \
      -d "site_id=Plone&title=Example&default_language=en_CA"

    The admin password from cookiecutter lives in inituser.conf; change it immediately on the first login.

  7. Reverse-proxy with Nginx.

    server {
      listen 443 ssl http2;
      server_name example.org;
      ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
      ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;
      location / {
        proxy_pass http://127.0.0.1:8080/VirtualHostBase/https/example.org:443/Plone/VirtualHostRoot/;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $remote_addr;
      }
    }

    The VirtualHostBase/.../VirtualHostRoot rewrite is Plone’s URL rewriting convention — without it, generated absolute URLs point at localhost:8080.

  8. Optional: install Volto. Volto is a Node.js app:

    nvm install 20
    npm install -g pnpm
    pnpm create @plone/volto example-volto
    cd example-volto
    pnpm install
    pnpm build

    Then run Volto under PM2 on a different port and proxy it from Nginx alongside ++api++ routes pointing at Zope.

Operational notes

  • The ZODB undo log grows with every transaction — schedule a weekly python -m zodbpack -d 7 var/filestorage/Data.fs to remove transactions older than 7 days.
  • ZEO connections are stateful — losing them mid-request kills the worker. Use keep-alive on the proxy and reasonable timeouts.
  • The Plone control panel exposes a “Maintenance” tab with a “Pack database” button — that runs the same zodbpack operation through the UI. Don’t run both at once.
  • Volto’s RAZZLE_API_PATH env var is the URL it calls for the REST API; mis-set, every page returns “Backend unreachable.”
  • Plone add-ons (plone.app.<thing>) install via pip into the venv — keep constraints.txt and the venv together; mixing pins from different Plone versions breaks reproducible builds.

For institutions that run Plone — and there are many in government, universities, NGOs — Stack Harbor operates the stack: ZEO + Zope + Volto, ZODB pack scheduled, Plone version pinned and upgrade plan documented, REST API monitored — so the editorial team only sees the CMS UI. That model lives under managed operations, with related notes in the knowledge base.