Nginx or Caddy? Picking a Web Server
Both work. Here is how we decide which one to recommend, with configs for each.
Most installs take under ten minutes on a fresh server. The web installer checks requirements, writes the environment file and creates the first admin.
Before you start
Scheduled tasks run from a single cron entry that calls the scheduler every minute; there is no need to add one line per job.
File permissions trip up more installs than anything else: the web server needs write access to storage and the cache folder, nothing more.
- PHP 8.2+ with intl, mbstring and gd
- MySQL 8, PostgreSQL 14 or SQLite 3.35+
- A process manager for the queue worker
- One cron entry for the scheduler
“Simplicity is prerequisite for reliability.”
— Edsger W. Dijkstra, EWD 498 (1975)
Step by step
Launch Crate needs PHP 8.2 or newer, a database and somewhere to run a queue worker. Everything else is optional and can be added later.
Troubleshooting
We recommend starting with SQLite for local development and switching to MySQL or PostgreSQL before launch; the migration command handles the move.
Put the queue worker under a process manager such as systemd or Supervisor, otherwise emails and webhooks will quietly pile up.
Keep your environment file out of version control and back it up somewhere safe; it holds the keys that decrypt your data.
If the installer stops at the requirements screen, the message names the missing PHP extension and the package that provides it.
How we work on posts like this
Finally, every post gets a real person as its author. The name on the card is the person who did the work and who will answer the comments, which keeps the writing specific and gives readers someone to hold to account when something does not work as described.
Every post on this blog starts as a note in the issue that shipped the change. When the work is done, whoever built it writes a first draft while the details are still fresh, and someone who did not work on it edits the draft for clarity. That second reader catches the jargon and the missing steps that the author can no longer see.
We try to show our working. Screenshots are taken on a real install with real data rather than a staged demo, config snippets are copied from the servers we run, and numbers come straight from our analytics exports. If a number looks too good, we say where it came from and how we measured it.
Before publishing, we test every instruction on a clean install of the current release. It is slow and occasionally embarrassing, because the steps we remember are not always the steps the software needs, but it means the post still works for someone reading it months later.
Customer questions shape most of what we write. When the same question reaches the support inbox three times in a week, it becomes a candidate for a post, and the support team gets a link they can send instead of a long reply typed out from memory.
We keep posts updated rather than writing new ones for every small change. When a step changes in a later release, the post gets an edit note at the top with the date and the version, so returning readers can see what moved without rereading everything.
Questions or a better approach? Leave a comment below, or reply to the build-log email and we will fold the best ideas into the next release.
I would pay for the kit just for the admin panel. Nicely done.
I would pay for the kit just for the admin panel. Nicely done.
The dark mode section alone was worth the read.