Akadata Linux · Version 0 Saphira

PHP and php-fpm

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

Saphira, the Akadata Linux Version 0 mascot
Technical preview

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.