Install CAMPP
CAMPP is a local web development stack: Caddy (web server), PHP, MySQL or MariaDB, PostgreSQL, phpMyAdmin and Adminer in one app. It runs from your own user folder, so no admin rights are needed.
- Windows:
CAMPP-x64.exe(recommended) or.msi. Portable.zipfiles run without installing; the offline one already includes all runtimes. - macOS: the
universal.dmgworks on Apple Silicon and Intel. Open it and drag CAMPP to Applications. - Linux:
.deb(Ubuntu/Debian),.rpm(Fedora/openSUSE),.AppImageor a portable.tar.gz.
First run
The first time you open CAMPP, a short setup wizard downloads the runtimes you choose.
- Click Get Started on the welcome screen.
- Choose the components you want and pick a version for each. Caddy and PHP are required.
- On the same screen, set a root password for each database you install (MySQL/MariaDB and PostgreSQL). Remember it: you use it to log in to the databases.
- Click Download & Install. CAMPP downloads and sets everything up.
- When it finishes, click Continue to Dashboard.
Start and stop services
The Services page lists every installed service. Use the switch on a row to start or stop it, the round arrow to restart it, or Start all / Stop all at the top.
The cards below the list open your Website, phpMyAdmin, Adminer or your Projects folder. The first three need Caddy to be running.
| Service | Default port | Address |
|---|---|---|
| Web server (Caddy) | 8080 | http://localhost:8080 |
| PHP-FPM | 9000 | Internal, used by Caddy |
| MySQL / MariaDB | 3307 | 127.0.0.1:3307 |
| PostgreSQL | 5433 | 127.0.0.1:5433 |
Your projects
Put each website in its own folder inside the projects folder. To open it, click the Projects folder card on the Services page.
projects/
βββ my-site/
β βββ index.php
β βββ style.css
βββ shop/
βββ index.htmlhttp://localhost:8080/my-site/runsmy-site/index.php.- A folder with an
index.htmlis served as a static site. - A missing page, or a folder without
index.phporindex.html, shows 404 Not Found. Link to the file directly, for example/my-site/report.php.
Databases
| Setting | MySQL / MariaDB | PostgreSQL |
|---|---|---|
| Host | 127.0.0.1 | 127.0.0.1 |
| Port | 3307 | 5433 |
| User | root | root |
| Password | The root password you set during setup | The root password you set during setup |
Connect from PHP with PDO:
<?php
$mysql = new PDO('mysql:host=127.0.0.1;port=3307;dbname=test;charset=utf8mb4', 'root', 'your-password');
$pgsql = new PDO('pgsql:host=127.0.0.1;port=5433;dbname=postgres', 'root', 'your-password');127.0.0.1 rather than localhost for MySQL. With localhost, PHP tries a local socket instead of the TCP port.phpMyAdmin and Adminer always ask for your password. This keeps your databases safe if you share your site on the network.
Components
The Components page shows each component and its installed version. Install adds a missing one, Uninstall removes it, and Reinstall lets you pick another version.
Settings
- Network: Local only (default) means only this computer can open your sites. LAN lets other devices on your network reach them.
- Ports: change a port if another program already uses it.
- Database passwords: type a new root password, or leave the field empty to keep the current one. The current password is never shown.
- Delete all projects and databases: empties the projects folder and deletes every database. No backup is made, so back up first.
Backup and restore
- Click Stop all on the Services page.
- Open Backup and click Back up now. The zip appears in the list.
- To go back to a backup, click Restore. CAMPP saves your current state first (marked before restore), so a restore can be undone.
- Click Delete to remove a backup you no longer need.
Troubleshooting
- A service won't start: open Debug → Port check. If a port is In Use, another program uses it; change the port in Settings.
- Can't log in to phpMyAdmin or Adminer: use
rootand the database password. Set a new one in Settings → Database passwords. - Need help: click Copy diagnostics and paste the result into a GitHub issue.
- Start over: Reset installation deletes the runtimes, databases and settings. Your projects folder and backups are kept.
Where CAMPP keeps your files
| System | Location |
|---|---|
| Windows | The folder CAMPP is installed in (default %LOCALAPPDATA%\CAMPP), or where you unzipped the portable version |
| macOS | ~/Library/Application Support/campp |
| Linux | ~/.local/share/campp |
Inside it: projects (your sites), mysql/data and pgsql/data (databases), backups, logs and runtime (the downloaded programs). Debug → Folders shows the exact paths on your computer.
Screenshots follow the light or dark theme of this website.