Install
Pingclair ships as a single Linux binary. This page installs it, shows what the installer left behind, and verifies that the server answers. The current release is v0.2.0-rc.3, a release candidate, and every page on this site describes that release.
🧾 What you need
Section titled “🧾 What you need”- A Linux host on
x86_64oraarch64; release binaries exist for both. sudoor root: the installer writes to/usr/local/bin,/etc/Pingclair,/var/lib/pingclair, and/etc/systemd/system.systemdfor the service path. On a host without it, use Docker or run the server in the foreground; both are covered below.- Ports 80 and 443 reachable from the internet if you want public certificates (HTTPS). On a cloud instance, that usually means opening them in the provider’s firewall as well.
macOS builds from source and is supported for development. macOS is not a shipping platform.
📦 Install from a release binary
Section titled “📦 Install from a release binary”curl -fsSL https://raw.githubusercontent.com/dorianverlaine/pingclair/main/scripts/install.sh | sudo bashThe script asks the GitHub releases API for the newest tag, prints the tag it is about to install, verifies the published SHA-256 checksum of the archive, and refuses an archive that does not match. It then creates the service user, grants that user the capability to bind low ports, writes the default configuration, installs the unit, and starts the service. A complete run ends like this:
Detected architecture: x86_64Fetching latest release from dorianverlaine/pingclair...Installing v0.2.0-rc.3 — a release candidate, not a final release.Downloading https://github.com/dorianverlaine/pingclair/releases/download/v0.2.0-rc.3/pingclair-linux-x86_64.tar.gz...pingclair-linux-x86_64.tar.gz: OKCreating system user 'pingclair'...Setting capabilities...Configuring directories and assets...Fetching default landing page...Creating default Pingclairfile...Installing Systemd service...Creating 'pc' symlink...✅ Installation Complete!Use pc service status to check the service.Config: /etc/Pingclair/PingclairfileInstall main instead of the release binary when you need an unreleased fix:
curl -fsSL https://raw.githubusercontent.com/dorianverlaine/pingclair/main/scripts/install.sh | sudo bash -s -- --main--main clones and compiles the server on the host. It needs Rust 1.98 or newer
and the C toolchain BoringSSL and jemalloc require: cmake, clang,
libclang-dev, g++, and git. The script installs those packages itself on
both apt and dnf systems. The first build takes several minutes because
BoringSSL is compiled from source.
🗂️ What the installer left behind
Section titled “🗂️ What the installer left behind”| Path | What it holds |
|---|---|
/usr/local/bin/pingclair |
The server binary. |
/usr/local/bin/pc |
A symlink to the same binary, for the short form. |
/etc/Pingclair/Pingclairfile |
The configuration the service runs. |
/etc/Pingclair/Pingclairfile.example |
A commented example, never overwritten by an upgrade. |
/var/lib/pingclair/certs |
The certificate store, named by PINGCLAIR_TLS_STORE in the unit. |
/var/lib/pingclair/html |
The placeholder site served on port 80. |
/var/log/pingclair |
Where a log sink writes once you configure one. |
/etc/systemd/system/pingclair.service |
The unit, enabled and running. |
The service is already serving when the script finishes. The configuration it runs is the placeholder, and it is small enough to read in one screen:
# 🦀 Pingclair default configuration file# Management commands: pc service <start|stop|reload|status>
:80 { # Welcome page file_server /var/lib/pingclair/html}The service user and the certificate store are created only if they are missing,
and an existing /etc/Pingclair/Pingclairfile is never replaced. That is what
makes re-running the installer an upgrade rather than a reset
(Upgrading and removing).
✅ Verify the installation
Section titled “✅ Verify the installation”Ask the binary for its version:
pingclair versionv0.2.0-rc.3pc is the same binary, so pc version prints the same string. Then ask
systemd what it thinks:
pc service status● pingclair.service - Pingclair High-Performance Web Server Loaded: loaded (/etc/systemd/system/pingclair.service; enabled; preset: enabled) Active: active (running) since Tue 2026-09-22 03:21:55 UTC; 42s ago Docs: https://github.com/dorianverlaine/pingclair Main PID: 27630 (pingclair) Status: "Serving" Tasks: 12 (limit: 627) Memory: 8.2M (peak: 8.5M)Status: "Serving" comes from the server itself rather than from systemd
watching a process that is merely alive: the unit is of type notify, and the
server reports ready only after every listener is bound.
Finally, ask the server:
curl -i http://localhost/HTTP/1.1 200 OKContent-Type: text/html; charset=utf-8Content-Length: 18747Last-Modified: Tue, 22 Sep 2026 03:21:54 GMTETag: "493b-6ab1f452"Vary: Accept-EncodingAccept-Ranges: bytesserver: PingclairA 200 with ETag and Last-Modified means the file server answered, and the
body is the placeholder page in /var/lib/pingclair/html.
🐳 Docker
Section titled “🐳 Docker”The published image runs config-file mode: its entrypoint is pingclair and its
default command is run /etc/pingclair/Pingclairfile. The image declares
/etc/pingclair and /var/lib/pingclair as volumes, and exports ports 80 and
443.
services: pingclair: image: ghcr.io/dorianverlaine/pingclair:v0.2.0-rc.3 restart: unless-stopped ports: - "80:80" - "443:443" - "443:443/udp" # HTTP/3 volumes: - ./conf:/etc/pingclair:ro - ./site:/srv:ro - pingclair_tls:/var/lib/pingclair
volumes: pingclair_tls:mkdir -p conf siteprintf ':80 {\n file_server /srv\n}\n' > conf/Pingclairfileecho '<h1>hello from the container</h1>' > site/index.htmldocker compose up -dcurl -i http://localhost/Three points are easy to get wrong:
- Do not add
command:. The image default is alreadyrun /etc/pingclair/Pingclairfile, and overriding it replaces that command. - Do not mount
/var/lib/pingclair/certsalone. The store keeps state beside the certificates directory, and a container recreated with onlycertsmounted loses it. Mount/var/lib/pingclair. - Pin a released tag.
latestfollows the newest release; production should name the version, as the example does. Published tags are listed on the package page.
On a host where your user is not in the docker group, prefix the commands with
sudo, or join the group once with sudo usermod -aG docker "$USER" and start a
new login session. On Ubuntu, the docker compose plugin comes from the
docker-compose-v2 package.
🛠️ Build from source
Section titled “🛠️ Build from source”git clone https://github.com/dorianverlaine/pingclaircd pingclaircargo build --releaseRequirements: Rust 1.98.1 (the version CI pins), cmake, clang,
libclang-dev, g++, and git. BoringSSL is compiled from source as part of
the build, so the first build takes several minutes.
⚠️ When the install fails
Section titled “⚠️ When the install fails”This script must be run as root. The script writes outside your home directory and installs a unit. Re-run it withsudo.setcap: command not foundon Fedora. That is thelibcappackage. The installer adds it, but a hand-built host may lack it, and without the capability the service cannot bind ports 80 and 443.Job for pingclair.service failedright after the install. Readjournalctl -u pingclair -n 20. The usual causes are a configuration that does not validate, or something already listening on port 80.- The service is running but nothing answers from outside. The listeners are bound and the packets never arrive. Check the provider’s firewall or security group first, then the host’s own rules.
- The host has no
systemd. The binary is installed and usable, but the installer’s service step cannot run. Use Docker, orpingclair run.
🧹 Removing it again
Section titled “🧹 Removing it again”Upgrading and removing walks through the teardown and names the directories that hold data worth keeping.
🧭 Next steps
Section titled “🧭 Next steps”- Quickstart: replace the placeholder with your own configuration and serve a real site.
- HTTPS: certificates for a public name.
- Run it as a service: what the unit does and how to reload it safely.
