Ask a Laravel developer where they host, and the answer is rarely "my hosting provider". It's a VPS plus Forge or Ploi, or a managed platform, because standard hosting plans don't run what a Laravel app needs. Cipi gives a hosting company that stack on its own servers, and an API to sell it under its own brand: WHMCS runs billing and the lifecycle, and a customer panel of your own does the rest. This guide shows how the pieces fit and what to build.
The opportunity#
| A Laravel app needs | Typical shared or cPanel hosting | On a Cipi server |
|---|---|---|
| Queue workers, Horizon | Often not allowed, or killed | Supervisor programs per app, restarted on deploy |
| The scheduler every minute | Cron with limits on frequency | One cron per app, on by default |
| Git deploys without downtime | FTP uploads, or git pull in place | Atomic releases with rollback (Laravel), webhooks from Git forges |
| A PHP version per app | One or a few versions | PHP 8.3 to 8.6 side by side |
| Cache and queues | Rare on shared plans | A Valkey per app |
| WebSockets, Octane | Not available | Reverb, and Octane on FrankenPHP |
| Isolation | Shared users or uneven containers | A Linux user, PHP-FPM pool, database and Valkey per app |
Your competitive advantage with Cipi
- Laravel-native, not Laravel-tolerant. The workflow developers know from Forge and Laravel Cloud, on your infrastructure.
- Not only Laravel. WordPress, WooCommerce, Symfony and plain PHP sites run on the same servers with the same isolation, so one product line covers agencies with mixed portfolios.
- Secure by default. Key-only SSH, firewall, Fail2ban, optional CrowdSec and Zero Trust, encrypted backups, a tamper-evident deploy log and compliance evidence mapped to ISO 27001 and SOC 2.
- Fully automatable. Every action is a REST call, a PHP SDK method or an MCP tool, so billing, your panel and AI assistants drive the same engine.
- Your brand. Cipi is MIT licensed, with no account and no telemetry. The customer sees your panel; Cipi works underneath.
- No licence per server or per account. The panel costs €0, so the margin stays with you as you grow.
Architecture#
Every Cipi server runs its own API on its own hostname. WHMCS, your customer panel, your staff and AI assistants all drive that same API, each with a token limited to what it needs.
They sign in to your panel and pay through WHMCS. They never see a token or a server address.
WHMCS creates, suspends and removes apps through the Cipi module. Your panel, a Laravel app on cipi/sdk, gives customers deploys, logs, .env, domains, databases and backups.
REST, async jobs and an MCP endpoint, with Swagger docs at /docs. Each caller has its own token with only the abilities it needs, and an IP whitelist keeps everyone else out.
The API calls the same commands that run with sudo cipi …, so anything possible in a terminal is possible over HTTP.
Laravel, WordPress, Symfony or any PHP app, each in its own cell. One compromised site can't read the others.
Your staff can see the whole fleet in the optional web GUI, with one login for every node. Long operations (create, deploy, SSL, backups) return a job you poll until it ends.
| Piece | Role | Where it runs |
|---|---|---|
| Cipi | Server engine: stack, isolation, deploys, SSL, backups | Each hosting node |
| Cipi API | REST, jobs, Swagger docs at /docs, MCP at /mcp | Each node, own hostname, HTTPS |
| WHMCS module | Product lifecycle from billing | Your WHMCS |
PHP SDK (cipi/sdk) | Typed client for your panel and automations | Your panel |
| Cipi GUI | Optional panel: one login for many servers, roles and per-app grants | Your management host |
WHMCS: billing drives the servers#
The Cipi server module for WHMCS turns orders, unpaid invoices and cancellations into apps that are created, suspended and removed on your Cipi servers, with no staff action. The full setup (tokens, server groups, products, a plan-limits hook) is in Cipi and WHMCS for hosting providers.
| WHMCS action | On the server |
|---|---|
| Create Account | App created (user from the WHMCS username, domain from the order), job awaited, optional Let's Encrypt certificate |
| Suspend / Unsuspend | A 503 maintenance page replaces the site / the normal vhost comes back; nothing is deleted |
| Change Package | New PHP version, repository or branch |
| Terminate | App removed |
| Admin buttons | Install SSL, Deploy, Rollback, Unlock deploy, list / add / remove alias, App info |
What the module leaves to you. It adds no client area tab, and it doesn't copy the one-time secrets Cipi creates (SSH password, database password, deploy key, webhook URL) into WHMCS. That is exactly the space for your own panel: read the credentials from the create job, store them, and show them to the customer under your brand.
Your own panel on the API and SDK#
Your customer panel is a Laravel app of yours that keeps the customer relationship and calls the API of each node with cipi/sdk.
- One API per node, on its own hostname with HTTPS, with an interactive reference at
/docs. - Tokens with abilities. Each caller gets its own token with only the abilities it needs (
apps-view,deploy-manage,ssl-manage, …). A missing ability answers403. - Async jobs. Creates, deploys, certificates and backups return a
job_id;GET /api/jobs/{id}reports progress, the live output of the command and the result. - IP whitelist. Only your panel and WHMCS reach
/api/*and/mcp:sudo cipi api ip-whitelist add <ip>.
use Cipi\Sdk\Cipi;
$cipi = Cipi::connect(baseUrl: $node->api_url, token: decrypt($node->api_token));
$job = $cipi->wait($cipi->apps()->create([
'user' => $service->app_name, // e.g. acme42
'domain' => $service->domain,
'repository' => $service->repository, // Laravel apps
'branch' => 'main',
'php' => '8.4',
]));
// One-time secrets: SSH and DB passwords, deploy key, webhook URL
$service->storeEncrypted($job['data']['result']);
$cipi->limits()->update($service->app_name, $service->plan->limits());
$cipi->wait($cipi->ssl()->install($service->app_name));| Customer feature | SDK |
|---|---|
| Deploy now, deploy status and history | deploys()->start(), status(), history() |
| Logs: Nginx, PHP-FPM, Laravel | logs()->get() |
Environment (.env) editor | env()->update() |
| Domains, redirects, HTTPS | apps()->update(), redirects()->add(), ssl()->install() |
| Databases, imports of large dumps | databases()->create(), upload() |
| Backups and restores | backups()->run(), runs(), verify() |
| Page cache and WordPress object cache | cache()->enable(), purge(), objectCache()->enable() |
| Plan limits and disk usage | limits()->update(), disk()->usage() |
cipi.yml from the repository | yml()->status(), apply() |
| Anything not wrapped yet | request() on any /api path |
Rules for a multi-tenant panel
- Keep a table that maps each customer service to its node and app name, and authorise every request against it before calling the API: the API trusts your token, not your customer.
- Tokens live on your server, encrypted; never send one to the browser.
- Give the panel's token only app-level abilities. Server-wide abilities (firewall, packages, SSH keys, Zero Trust, updates) stay with your staff.
- MCP is for your staff, or for customers with a dedicated server: an
mcp-accesstoken reaches every tool on its node.
A faster start. The Cipi GUI already has roles and per-app grants (View, Deploy, Edit, Environment, Logs, Commands, Delete), invite links, 2FA and single sign-on. It is MIT licensed like the rest of Cipi: use it for your staff on day one, and study it, or fork it, as the base of your customer panel.
Designing the product line#
Build a ladder from a single managed app to a dedicated server, all on the same engine, so customers move up without moving away.
| Product | Customer gets | You run | Automation |
|---|---|---|---|
| Managed Laravel app | One isolated app: SSH/SFTP as its own user, Git deploys, database, HTTPS, backups | Shared Cipi nodes | WHMCS module + your panel |
| WordPress & PHP site | A custom app with the PHP version and document root it needs, page and object cache | Shared Cipi nodes | WHMCS module (custom) |
| Laravel app instance | A ready instance of a SaaS or template on its own domain | Shared nodes, the product's repository | WHMCS module with the repository in the product |
| Laravel & PHP VPS | A whole VPS with Cipi and root | The VM only | Your VPS module + Cipi at first boot |
| Managed dedicated server | A server of their own, run by your team | The server, updates, monitoring | Your staff in the Cipi GUI, optional MCP for AI ops |
Plans as limits, not as features. Every plan gets the full stack; what changes is the resources, applied with PUT /api/apps/{name}/limits:
| Plan (example) | PHP-FPM children | memory_limit | Queue workers | Soft disk limit |
|---|---|---|---|---|
| Starter | 5 | 256M | 1 | 5 GB |
| Pro | 10 | 512M | 2 | 20 GB |
| Business | 20 | 1G | 4 | 50 GB |
Add-ons that cost you little and sell well
- Staging and preview environments: the same app with an
envlabel such asstaging, and its owncipi-staging.yml. - Octane on FrankenPHP, Reverb WebSockets, Horizon, Meilisearch for Laravel Scout.
- Off-site backups to your object storage or an SFTP box, with verified restores.
- In-memory page cache for busy WordPress and WooCommerce shops.
- Zero Trust access (Cloudflare Tunnel, Tailscale, NetBird) and CrowdSec for security-minded customers.
- A compliance pack:
sudo cipi compliance reportcollects evidence mapped to ISO 27001 and SOC 2, with a tamper-evident deploy log and anonymised database dumps. - Migrations from Forge, Ploi, cPanel or another host, and moves between your own nodes with
sudo cipi sync.
Positioning: Laravel & PHP? Consider it deployed. Laravel gets the full treatment, and WordPress, Symfony and any PHP app run beside it with the same isolation: one offer for agencies and product teams.
Security and operations at scale#
On a shared node, Cipi's per-app isolation is what makes many customers on one server safe; your job is to keep the API private and the fleet watched.
| Concern | What Cipi does | What you set up |
|---|---|---|
| Customer isolation | A Linux user, PHP-FPM pool, database user and Valkey per app | A Valkey per app on shared nodes: sudo cipi valkey isolate --all |
| API access | HTTPS, scoped tokens, IP whitelist | One token per caller with an expiry date; a whitelist with only WHMCS and your panel |
| Server hardening | Key-only SSH, UFW, Fail2ban, overnight PHP security patches | CrowdSec on shared nodes, Zero Trust for staff access |
| Noisy neighbours | PHP-FPM, memory, worker and Octane limits per app; soft disk limit with alerts | Limits per plan from WHMCS; disk alerts routed to your team |
| Updates | Cipi updates itself | An update delay on production nodes, so a new release lands on a canary node first |
| Backups | Encrypted backups to S3 or SFTP, retention, verification | Off-site buckets in another region, restore tests |
| Monitoring | Per-app CPU, memory, requests, 5xx and uptime, a heartbeat, OpenMetrics | Scraping into your Prometheus; alerts to your on-call channel |
| Audits | Tamper-evident deploy log, compliance report | Reports kept for customers who ask |
- Capacity: WHMCS server groups fill the least full node; set Maximum No. of Accounts from your plan limits and the node size.
- Rebalancing and maintenance: move one app or a whole node to another Cipi server with
sudo cipi sync, encrypted in transit. - One view: your staff see every node in the Cipi GUI, with per-server and per-app grants for each team member.
- Suspensions: a suspended app serves a 503 page and keeps its data and certificates, so a paid invoice brings it back exactly as it was.
Rollout plan#
Install Cipi on one node, enable the API on its own hostname, create the WHMCS token, whitelist WHMCS, set up off-site backups and alerts.
One Managed Laravel app product with Auto SSL and a plan-limits hook. Order, suspend, unsuspend and terminate a test service end to end.
Sign-in, the service list, credentials shown once, deploy now, logs and the .env editor, on cipi/sdk.
A few agencies or Laravel teams, with a migration from their current host included.
More nodes per region in server groups, the WordPress & PHP product, staging add-ons, Prometheus scraping, the Cipi GUI for support.
Product pages, pricing, docs under your brand, an announcement in the Laravel community.
Before going live
- Every node: API on HTTPS, IP whitelist, one token per caller with only its abilities.
- A Valkey per app on shared nodes, CrowdSec on, an update delay set.
- Off-site backups verified with a real restore.
- Alerts and metrics reaching your on-call channel.
- WHMCS: server groups, the plan-limits hook, automatic suspension and termination.
- Your panel: credentials encrypted at rest, every call authorised against the service map.
- A support runbook: who supports what, how to roll back a deploy, how to move an app between nodes.
Questions
Can we rebrand Cipi?
Yes. Cipi, its API, SDK, GUI and WHMCS module are MIT licensed: you can build on them, fork them and sell services under your own brand. Keep the copyright notice in copies of the code.
Do customers see Cipi?
Not in your own panel: they see your brand, and your panel talks to the Cipi API on the server side. Cipi's name stays in places like the server's MOTD.
Can customers use the Cipi web GUI instead of a panel of ours?
Yes, with roles and per-app grants they see only their own apps. It carries Cipi's look; for your own brand, build a panel on the SDK or fork the GUI.
Is one API shared by all servers?
No. Each Cipi server runs its own API on its own hostname. Your panel keeps a list of nodes and a token for each.
How do customers get their credentials?
The create job returns the one-time secrets (SSH and database passwords, deploy key, webhook URL). Your panel stores them encrypted and shows them to the customer.
Can we give customers MCP access for AI assistants?
Only on a dedicated server. An mcp-access token reaches every tool on its node, so on shared nodes keep MCP for your staff.
Are plan limits enforced?
PHP-FPM children, memory_limit, queue workers and Octane workers are enforced. The disk limit is soft: it alerts at 90% and over the limit, and the site keeps working.