I built CAMPP, a portable local web stack that needs no admin rights
Setting up a local PHP environment should take minutes, but on a locked-down lab PC, a work laptop without admin rights, or a fresh Linux install, it often turns into an afternoon of installers, PATH edits and port conflicts. I wanted something I could hand to anyone, on any OS, that just works.
So I built CAMPP: a free, open-source desktop app that runs a full local web stack from a single folder.
What's in the box
| Component | Options |
|---|---|
| Web server | Caddy 2.11 |
| PHP | 8.5, 8.4, 8.3, 8.2 (plus 7.4 on Windows) |
| Database | MySQL, MariaDB or PostgreSQL |
| DB tools | phpMyAdmin, Adminer |
| Extras | Composer, ngrok tunnels (Windows) |
You pick versions and components in a setup wizard, and you can add, reinstall or remove them later.
The ideas behind it
No admin rights, ever. CAMPP uses non-default ports (web 8080, MySQL 3307, PostgreSQL 5433), so it never needs elevated permissions and doesn't clash with anything already on the machine.
Self-contained. Every binary, config file, database and project lives in CAMPP's own folder. Nothing is installed system-wide: no system PHP, no global PATH changes, no background services. Remove the folder and it's gone.
Small download. The app is built with Tauri (a Rust backend with a React UI), so the download is about 6 MB. The PHP and database binaries you choose are downloaded on first run. For classrooms or offline machines, there's also a portable zip with everything bundled.
PHP on the command line, without the mess. "Open terminal" opens a shell in your projects folder where php and composer point at CAMPP's versions, for that window only.
Other things it does
- Start, stop and restart each service on its own, or all at once
- LAN mode to open your local site from a phone on the same network
- Backup and restore: projects plus all database data in one zip
- ngrok tunnels (Windows) to share a local site at a public URL, handy for webhooks and demos
- Change ports in Settings, a debug page with port checks and copyable diagnostics, plus light and dark themes
Under the hood
For the curious:
- The Rust backend spawns and supervises each service process. Config files (
Caddyfile,php.ini,my.ini) are generated from Mustache templates, so changing a port in Settings just regenerates them. - Runtime versions, download URLs and SHA256 checksums live in one JSON file (
runtime-config.json). Every download is verified before it's extracted, and you can audit exactly what the app fetches. - CAMPP only uses the network to download the components you choose (and to run ngrok, if you start it). Nothing else is sent anywhere.
Try it
Windows: download the installer or portable zip from GitHub Releases, or use Scoop:
scoop bucket add campp https://github.com/KarnYong/campp
scoop install campp/campp
(The Windows installers aren't code-signed yet, so SmartScreen may warn. Click More info → Run anyway, or use Scoop, which avoids the warning.)
macOS: the universal DMG works on Apple Silicon and Intel, and it's signed and notarized.
Linux: choose a .deb, .rpm, AppImage or portable tarball:
sudo apt install ./CAMPP-<version>-amd64.deb
Then open CAMPP, follow the wizard, click Start all, put your files in the projects folder and browse to http://localhost:8080.
Feedback welcome
CAMPP is MIT-licensed and I'm actively working on it. If you try it, I'd love to hear what works, what breaks, and what you'd want next. Open an issue or leave a comment below.
- GitHub: https://github.com/KarnYong/campp
- Website: https://campp.melivecode.com
If it's useful to you, a ⭐ on GitHub helps more people find it.
Comments
No comments yet. Start the discussion.