- Docs
- Start here
- Quickstart
Quickstart
From a fresh VPS to a Laravel app on HTTPS in five commands.
From a fresh Ubuntu server to a Laravel app on HTTPS, in about fifteen minutes. Every step shows the real command and what it prints; click a terminal to jump to the end.
You need: an Ubuntu 24.04 or 26.04 VPS with a public IP, a domain whose DNS you control, and a Git repository. Cipi is free; the only cost is the server.
1. Install Cipi#
SSH into the fresh server as root (or a sudo user) and run the installer. It asks for your SSH public key, shows its plan, then installs and hardens the whole stack.
$ wget -O - https://cipi.sh/setup.sh | bash
Save the credentials it prints. Requirements, SSH keys and unattended installs: Install Cipi.
2. Log in as cipi#
Root login over SSH is now off. Connect as cipi with your key and prefix commands with sudo (no password needed for cipi).
$ ssh cipi@203.0.113.10 $ sudo cipi status
3. Create your first app#
The wizard asks for the app type, runtime, database, name, domain and repository, then builds an isolated app: its own Linux user, database, PHP pool, Nginx vhost, worker and deploy key.
$ sudo cipi app create
Skip the questions with flags:
sudo cipi app create --user=myapp --domain=myapp.com \
--repository=git@github.com:you/myapp.git --branch=mainThe summary at the end (database password, deploy key, webhook token, a mariadb+ssh:// URL for TablePlus or DBeaver) is shown once. Save it.
4. Connect the repository#
If you gave the installer a Git token, there is nothing to do: Cipi added the deploy key and the push webhook to the repository. Otherwise add the ssh-ed25519 … key from the summary as a read-only deploy key:
| Provider | Where |
|---|---|
| GitHub | Repository → Settings → Deploy keys |
| GitLab | Settings → Repository → Deploy keys |
| Bitbucket | Repository settings → Access keys |
| Azure DevOps | User settings → SSH public keys |
Then check that the server can read it: sudo cipi git check myapp. Tokens and automatic setup: Git providers.
5. Prepare the Laravel project#
Cipi keeps cache, sessions and queues in each app's own database, so no app can read another's data. Laravel 11+ ships those tables; on an older project create them once and commit:
php artisan cache:table && php artisan session:table && php artisan queue:table
Migrations run on every deploy. Prefer Valkey for speed or Horizon? Switch per app in Valkey.
6. Deploy#
$ sudo cipi deploy myapp
The new release is built in its own folder, migrated, then made live with one atomic symlink swap. Visitors never see a half-deployed app, and cipi deploy myapp --rollback goes back in a second. How it works: Deploy & roll back.
7. Turn on HTTPS#
Point the domain's DNS at the server, then:
$ sudo cipi ssl install myapp
The certificate covers the domain and its aliases and renews itself. Behind the Cloudflare proxy use --dns=cloudflare and set SSL/TLS to Full (strict). More in SSL certificates.
8. Optional: the web panel#
Prefer a browser, or need one for clients? Install the API and the panel, each on its own domain. The panel can manage this server and any other Cipi server you connect.
$ sudo cipi api api.example.com $ sudo cipi gui panel.example.com
Next steps#
| To… | Read |
|---|---|
Deploy on every git push | Auto-deploy on push |
| Run queues or Horizon | Queues & Horizon |
| Back up to S3 every night | Backups to S3 |
| Keep server settings in the repo | cipi.yml |
| Get alerts on Slack or Telegram | Notifications |
Common problems#
| Problem | Fix |
|---|---|
Permission denied (publickey) when logging in | Log in as cipi (not root) with the key you pasted in the installer: ssh cipi@IP |
| The installer stops: container detected | Choose a full virtual machine (KVM), not an LXC/OpenVZ container |
| Deploy fails reading the repository | Add the deploy key to the repository, then sudo cipi git check myapp |
| Certificate fails | DNS must point at the server first: dig +short myapp.com |
| 500 error after the first deploy | sudo cipi app logs myapp --type=laravel shows the reason; often a missing .env key |
Questions#
| Question | Answer |
|---|---|
| How long does it take? | About 10 minutes for the install, a few minutes per app. |
| Never used a server? | Read VPS, SSH and DNS basics first, then the full first-deploy guide. |
| Can I use a server I already have? | Only a fresh Ubuntu 24.04 or 26.04 install. Moving from another tool? See the migration guides. |