Saphira Linux · an AKADATA project

PHP and php-fpm

Run PHP scripts from the CLI, serve applications through php-fpm behind nginx, and use opcache on Saphira Linux.

Saphira, the Version 0 mascot
Technical preview

Saphira Linux

Saphira Linux has a home of its own

Saphira Linux is AKADATA’s source-built, musl/OpenRC server distribution for self-hosted infrastructure. Development, downloads, documentation, packages and the Dragon feature sets now live on the dedicated Saphira Linux website.

Visit Saphira Linux saphira.vm2.uk


Stack guide — PHP

PHP 8.5 and php-fpm

PHP 8.5 runs through php-fpm behind nginx. The PHP CLI is available for scripting. The opcache extension is enabled for production performance.

php -r 'echo PHP_VERSION;'

# Run a PHP script:
php /usr/local/bin/myscript.php

The php-fpm pool is pre‑configured to listen on a Unix socket. Point nginx at that socket for PHP requests. Extensions installed from source include openssl, curl, mbstring, pdo_mysql, and opcache. Those are the extensions a production PHP application needs.

PHP scripts placed in /usr/local/bin or /usr/local/php stay outside the distribution tree. Back them up, move them between servers, or mount /usr/local independently. The runtime and extensions are part of the base.