ParallaxDISTRIBUTION
← Downloads

PHP / Official source release

PHP 8.5.12
Source and build guide

Build the official source alongside the installed runtime. Match the extensions, stage the FPM configuration, and keep the old service ready for rollback.

01 /Source archive and checksum

This is the official PHP 8.5.12 source archive. Its SHA-256 was checked against PHP’s published release metadata. The release manifest records the active download location.

Source archive

PHP 8.5.12 · tar.gz

File
php-8.5.12.tar.gz
Size
24,469,403 bytes
SHA-256
81a0f450349e84b08eb43faa85f8a4c835684f3cc1c50471775d1317a046c525

Official archive · SHA-256 recorded

Verify the downloaded archive
printf '%s  %s\n' '81a0f450349e84b08eb43faa85f8a4c835684f3cc1c50471775d1317a046c525' 'php-8.5.12.tar.gz' | sha256sum -c -

Continue only when the checksum matches. The source archive is not an APT package.

02 /Record the current PHP configuration

Record the active CLI and web runtimes separately. A shell’s php binary can differ from the PHP-FPM service handling production requests.

Local inventory · Linux
command -v php
php -v
php --ini
php -m
# Use the php-config that belongs to the installed runtime:
php-config --configure-options

Keep a copy of the FPM pool configuration, web-server upstream, extension configuration, package versions, and application release. Confirm the owner, maintenance window, backups, and rollback path before changing the serving runtime.

Scope: these notes describe an isolated source build on Linux. Ubuntu 24.04 is the reference environment. Build dependencies and configuration flags depend on the installed workload.

03 /Build an isolated runtime

Choose a fresh versioned prefix, such as /opt/php/8.5.12-build1. Review the existing configure options and install the development libraries needed for that configuration. Compile as an unprivileged build user; let your normal release process install into the protected prefix.

Isolated source build · illustrative minimum
tar -xzf php-8.5.12.tar.gz
cd php-8.5.12
PREFIX=/opt/php/8.5.12-build1

./configure \
  --prefix="$PREFIX" \
  --with-config-file-path="$PREFIX/etc" \
  --with-config-file-scan-dir="$PREFIX/etc/conf.d" \
  --enable-cli \
  --enable-fpm

make -j2
# Install into PREFIX using your authorized release process.
# The build above is a minimum; add reviewed workload options first.

Keep distribution-managed files and services intact. The new prefix should have its own php.ini, extension directory, FPM master configuration, pool configuration, log paths, PID file, and socket.

After installation, inspect the new binaries directly: /opt/php/8.5.12-build1/bin/php -v, --ini, and -m. Check the application’s required extensions against the original inventory.

04 /Rebuild external extensions

Rebuild external extensions with the new prefix’s phpize and php-config. Existing shared extension binaries may target a different PHP module API.

Examples that can need separate builds include igbinary, msgpack, redis, memcached, imagick, imap, and swoole. Select versions and dependencies compatible with the target PHP build and your application.

Inside an extension’s verified source directory
PREFIX=/opt/php/8.5.12-build1
"$PREFIX/bin/phpize"
./configure --with-php-config="$PREFIX/bin/php-config"
make -j2
# Install through the same authorized release process.
# Enable it in this prefix’s configuration, then inspect:
"$PREFIX/bin/php" --ini
"$PREFIX/bin/php" -m

PHP 8.5 includes OPcache and the URI extension, with Lexbor used by the bundled DOM implementation. Check the target build’s actual module list and configuration rather than copying an older extension list wholesale.

05 /Validate FPM and switch traffic

  1. Prepare a separate FPM service. Use a distinct socket or port and the existing application’s user, permissions, environment, and reviewed pool settings.
  2. Check its configuration. Run the new php-fpm -t against the staged FPM configuration before starting that service.
  3. Exercise the application through the staged runtime. Check requests, background jobs, sessions, database drivers, uploads, and the extensions the workload actually uses.
  4. Cut over explicitly. Back up the current web-server upstream, switch it to the staged FPM socket, and reload only after the web-server configuration check passes.
  5. Watch the release. Review application and FPM errors, request behavior, worker runtimes, and scheduled jobs. A successful CLI version check covers only the CLI.

06 /Rollback

Retain the previous runtime, service configuration, socket definition, and web-server upstream. If validation fails after the cutover, restore the prior upstream and reload the web server, then check the application through the restored runtime.

Return background workers and scheduled jobs to their previous binary as part of the same rollback. Application or database changes need their own rollback plan.

Configured Klaxon targets can use the source-to-PPA workflow to build an approved temporary runtime and check for package return when rerun.

Talbot Tech · PHP Critical Patch

PHP Critical Patch

Submit the server and runtime for manual scope review. Work begins after authorization, scope, and availability are agreed.

$100USD / SERVER

Already root on the server? Use Klaxon’s local PHP-FPM probe and APT maintenance without SSH setup. The source build workflow below uses a separate approved policy.

07 /Run the source-to-PPA workflow with Klaxon

Parallax CLI supplies a klaxon executable that runs the installed Klaxon application’s ZhQL workflow. The same request can probe an authorized PHP 8.5 FPM host, apply its approved source recipe, verify the running service, return a private report, and save a replayable kit.

Source kit 0.2.0

Download the PHP source helper

For Ubuntu 24.04 with Python 3.10 or newer. These files contain the source helper, managed-host examples, and instructions. The source helper is a separate lower-level bundle. The Klaxon CLI installer supplies the application runtime needed for the bare ZhQL command.

Verify downloaded files against the published checksums. Configure the private target and locked plan before executing maintenance.

Install Klaxon CLI

For a fresh installation, use the bundled Klaxon CLI installer. It requires Linux and PHP 8.4.1 or newer and includes production dependencies. No Composer or Node installation is needed for the headless CLI.

Use an existing Parallax CLI checkout

Add the directory containing Parallax CLI’s klaxon executable to PATH and select the installed application. Replace the paths with your installation directories and retain these settings in your shell profile.

Operator shell · one-time setup
export PATH="/absolute/path/to/parallax-cli:$PATH"
export KLAXON_APP_PATH="/absolute/path/to/klaxon"

A Composer installation exposes vendor/bin/klaxon; add that bin directory to PATH instead. Its launcher discovers the Composer host application. A local sibling ../klaxon checkout is also discovered during development. KLAXON_APP_PATH explicitly selects an installed application with its Composer dependencies.

Configure the authorized target before execution

  • Private authorized target: configure the exact hostname, permitted team IDs, dedicated SSH account, private key, and independently verified known-hosts file. Set KLAXON_EXECUTION_TARGETS_FILE to that operator-owned file.
  • Source strategy: select strategy: "source_bridge" in the private profile. The request supplies intent and CVEs; the private profile supplies the source plan, package scope, paths, and permitted operations.
  • Root-managed helper: install the reviewed fixed-path wrapper at /usr/local/libexec/parallax-php-workflow, its root-owned modules, and the mode-0600 profile at /etc/parallax/php-workflow.json. The dedicated SSH account receives only the helper’s probe and fix privileges.
  • Locked plan: bind the SHA-256 of the root-owned plan at /etc/parallax/php-source-plan.json on both hosts. Lock every source archive, required external extension, and optional patch. The plan must enable FPM and use a fresh session with SESSION/runtime and SESSION/build.
  • Host requirements: Ubuntu 24.04, Python 3.10+, systemd with cgroup v2, apt/dpkg, the existing PHP 8.5 FPM service, installed build dependencies, and a dedicated locked non-login build account. Record every installed php8.5-* package, including extension packages.
  • Application setup: apply Klaxon’s workflow migrations, use a shared cache backend for locks, and allow the source operation’s execution budget. Use the CLI for long builds.

The installation files and complete target examples are documented in Parallax CLI’s packages/php-source-kit/README.md and Klaxon’s docs/EXECUTION.md.

Execute the request

The hostname must match the configured authorized target. The team option is optional; standalone mode defaults to local workspace 1, while connected mode uses the configured or sole Nexus team. fix requests execution of that target’s permitted maintenance recipe.

Authorized target · execute, verify, report, save kit
klaxon probe web01.coolframes.com for CVE-2026-109618 and CVE-2026-109619, fix, report back, store as kit

The managed helper builds the approved isolated PHP 8.5 runtime as its dedicated account, verifies module and version parity, seals the candidate as root, and activates FPM. Completion requires a fresh probe of the actual running FPM executable and every requested known CVE. An ambiguous vendor backport stays inconclusive; it is not labeled vulnerable solely from an older upstream version.

report back returns a private report to the caller. The saved kit retains target, CVEs, intent, and recipe; replay revalidates the current private target profile and runtime.

Rerun to check for fixed PPA packages

Repeat the same sentence or replay its saved kit. While source mode is active, fix refreshes APT metadata. If a suitable PHP 8.5 package candidate is unavailable, the report records source_retained and verifies the active source runtime.

When the configured repositories offer a suitable candidate at least as new as the approved source release, the workflow attempts ppa_return. It simulates upgrades within the recorded package scope, checks the installed packaged FPM, removes its unchanged managed override, restarts the service, and verifies the running package image. A failed return retains or restores the source fallback.

Package binaries and CLI alternatives remain intact. The workflow uses existing repository configuration and checks for packages when rerun; it installs no background polling. Keep the state file and source prefix until package return and application validation succeed.

Validation status: source CLI and workflow tests use temporary files and mocked APT, systemd, and SSH inventory. No live host patch has been verified. Application health checks and persistent CLI worker restarts remain operator steps.