Skip to content
OnionZero
STATUS: 100% AIR-GAPPED · CORE INTACT Technical Briefing
OnionZero
STATUS: 100% AIR-GAPPED · CORE INTACT
Technical Briefing
TR EN

DOCUMENTATION

Setup & usage guides

Everything you need to run your encrypted product on your server: step-by-step guides, system requirements and answers.

QUICKSTART WIZARD

Zero to sealed in three moves

The fast path for engineers who read manuals last. Every block below is copy-ready; the full walkthroughs live in the setup guide.

  1. Identify your PHP build

    ozguard ships one binary per PHP flavor. This one-liner prints the version, thread-safety and architecture you must match:

    Linux · bash
    php -v
    php -r "echo (PHP_ZTS ? 'TS' : 'NTS') . ' ' . (PHP_INT_SIZE === 8 ? 'x64' : 'x86') . PHP_EOL;"
    Windows · PowerShell
    php -v
    php -r "echo (PHP_ZTS ? 'TS' : 'NTS') . ' ' . (PHP_INT_SIZE === 8 ? 'x64' : 'x86') . PHP_EOL;"
  2. Register ozguard with PHP

    Drop the extension file into PHP’s extension directory and point php.ini at it. Pick the tab that matches your platform:

    Linux · bash
    sudo cp ozguard.so "$(php -i | awk -F'=> ' '/extension_dir/{print $2}')/"
    echo "extension = ozguard.so" | sudo tee /etc/php/8.3/mods-available/ozguard.ini
    sudo phpenmod ozguard && sudo systemctl restart php8.3-fpm
    Windows · PowerShell
    Copy-Item .\ozguard.dll "C:\AppServ\php8\ext\"
    Add-Content "C:\AppServ\php8\php.ini" "`nextension = \"C:\AppServ\php8\ext\ozguard.dll\""
    httpd -k restart   # Apache — or: iisreset
    php.ini
    ; php.ini — enable the OnionZero runtime
    extension = ozguard.so
    
    ; Vendor public key is embedded in the extension — nothing else to set
    Dockerfile
    FROM php:8.3-fpm
    COPY ozguard.so /usr/local/lib/php/extensions/
    RUN echo "extension = ozguard.so" \
      > /usr/local/etc/php/conf.d/ozguard.ini
  3. Verify the load

    The module list must contain an ozguard line — that is PHP confirming the vault is armed:

    Linux · bash
    php -m | grep ozguard
    Windows · PowerShell
    php -m | findstr ozguard

Requirements at a glance

PHP 8.0–8.5Windows + Linux · NTS / TSx64 onlyroot / Administrator access≈ 5 minutes
Verified on PHP 8.3 / 8.4

Full setup guide

The complete ozguard walkthrough: Windows and Linux compatibility matrix, step-by-step install, php.ini reference, Dockerfile pattern and troubleshooting.

Open the setup guide

Runtime downloads

Every ozguard build — PHP 8.0–8.5 for Windows (NTS + TS) and PHP 8.1–8.5 for Linux — with SHA-256 checksums lives on the runtime page.

Open the download matrix

Keep reading