Docs cipi.yml Web panel API MCP Guides Compare GitHub Telegram channel
  1. Docs
  2. Start here
  3. How Cipi works

How Cipi works

The stack Cipi installs and how each app is laid out on disk.

Start here

Cipi is a command-line tool that lives on your server. It installs a proven open-source stack, then creates and runs apps on it, each one sealed off from the others. There is no external service in the loop: no account, no agent phoning home, nothing to pay.

The server#

  • Nginxweb server, TLS, proxy
  • PHP-FPM / Octaneseveral PHP versions side by side
  • MariaDB / PostgreSQLone database per app
  • Valkeycache, queues (opt-in per app)
  • Supervisorworkers, Horizon, Reverb
ComponentRole
Nginx (nginx.org mainline)Web server, reverse proxy, TLS termination, HTTP/2 hardening
PHP-FPMPHP runtime per app; 8.3 to 8.6 installable side by side
Laravel Octane (FrankenPHP)Optional long-running PHP server per Laravel app
MariaDBDefault database; PostgreSQL optional, chosen per app
ValkeyOpen-source Redis fork for cache, sessions, queues, broadcasting
SupervisorKeeps queue workers, Octane, Horizon and Reverb running
DeployerAtomic, zero-downtime releases (checksum-verified install)
CertbotLet's Encrypt certificates and renewals
UFW + Fail2banFirewall and brute-force bans
unattended-upgradesAutomatic security patches
cipiThe CLI that ties it all together

Each app#

Every app is a separate Linux user. If one app is compromised, the others' files, database and processes are out of reach.

AreaWhat the app gets
IsolationIts own Linux user (home 750), PHP pool or Octane process, SSH deploy key
WebAn Nginx vhost tuned for Laravel; aliases, redirects, basic auth
PHPVersion per app, changeable any time; php.ini via cipi ini
DataIts own database and user (MariaDB or PostgreSQL); its own Valkey instance
ProcessesQueue workers or Horizon, scheduler, optional Reverb
DeploysZero-downtime releases, last 5 kept, one-command rollback
TLSLet's Encrypt, HTTP or Cloudflare DNS validation, wildcards
Safety netsHealth check after each deploy with automatic rollback, backups, monitoring

Laravel is the default app type. --node builds and serves a React, Vue, Next.js, Nuxt or Astro frontend; --custom hosts WordPress or plain PHP without database or workers.

On disk#

/home/myapp/                 # the app's Linux user (chmod 750)
├── .ssh/id_ed25519(.pub)    # deploy key
├── .deployer/deploy.php     # generated Deployer config
├── current -> releases/3/   # the live release (atomic symlink)
├── releases/1 … 5/          # last 5 releases, for rollback
├── shared/
│   ├── .env                 # written by Cipi, kept across releases
│   └── storage/             # persistent storage
└── logs/                    # nginx, php-fpm, worker, deploy logs
Outside the homePath
PHP-FPM pool (FPM apps)/etc/php/<version>/fpm/pool.d/myapp.conf
Nginx vhost/etc/nginx/sites-available/myapp
Supervisor programs/etc/supervisor/conf.d/myapp.conf
Schedulerthe app user's crontab
Databasemyapp with user myapp@localhost

Cipi writes .env with every credential and APP_KEY; change it with cipi app env. If permissions get mangled (an archive unpacked as root, a chmod 775 .ssh), cipi app fix-permissions myapp restores them. Do not chown -R: Nginx writes logs as www-data and SSH refuses a deploy key with loose permissions.