v0.7.0 · Maintained releaseGalaxyHTTP
PHP and GalaxyCache

Configure your
serving runtime.

PHP 8.5.12 is recommended. GalaxyHTTP connects to an actual PHP worker; GalaxyCache is loaded inside that PHP runtime.

Discover PHP first.

Inspect installed runtimes, extension inventory and backend connectivity. Select an absolute executable path so the configured identity is clear.

galaxyhttpd --doctor-php --php-binary /absolute/path/to/php-fpm

Use maintained PHP 8.5.12 and GalaxyHTTP 0.7.0 on GNU Linux x64 or macOS ARM64. Download the current GalaxyHTTP package from the release downloads, unpack it in a separate folder and run the enclosed executable. The GalaxyPHP repository records the PHP sources and package qualification. Its signed catalogue selects the current fixed runtime. Earlier installers may select an outdated mirror.

Install into a private directory owned by the account that will run the PHP workers. The parent directory must already exist. On Mac ARM64 or Linux x64, select the supplied LSAPI runtime:

mkdir -p -m 700 "$HOME/GalaxyPHP"
./galaxyhttpd --install-php 8.5 --php-install-sapi litespeed \
  --php-install-root "$HOME/GalaxyPHP/runtime" --with-galaxycache

On Windows x64, run the Windows installer from PowerShell. This package supplies PHP-CGI; a matching Windows GalaxyCache module is a separate qualification.

New-Item -ItemType Directory -Force "$env:LOCALAPPDATA\GalaxyPHP" | Out-Null
.\galaxyhttpd.exe --install-php 8.5 `
  --php-install-root "$env:LOCALAPPDATA\GalaxyPHP\runtime"

Use the returned worker binary and INI paths to create a configuration. The doctor writes a new file and pins the chosen binary; it does not overwrite an existing site configuration.

galaxyhttpd --doctor-php --php-binary /absolute/path/to/php-fpm \
  --site-root /srv/www/example --write-php-config /srv/galaxyhttp/example.toml \
  --managed-php --worker-kind fpm --php-runtime-dir /srv/galaxyhttp/php-worker \
  --php-ini /srv/php/site.ini --site-host example.test
galaxyhttpd --config /srv/galaxyhttp/example.toml --check
galaxyhttpd --config /srv/galaxyhttp/example.toml

Choose your PHP transport.

PHP-FPM uses FastCGI on Unix. Windows uses native PHP-CGI FastCGI over a loopback TCP endpoint. LSPHP uses LSAPI on supported Unix runtimes; use a matching ordinary PHP CLI for extension installation diagnostics, because LSPHP is not a normal CLI.

External PHP pools remain supported. A managed worker additionally provides private serving-version/module verification, startup checks, bounded recovery and worker-generation-aware connection handling.

listen = "127.0.0.1:8080"
[[sites]]
hosts = ["example.test"]
root = "/srv/www/example"
php_fpm_socket = "unix:/srv/php/php.sock"

For LSAPI, configure lsphp_socket with the private Unix endpoint. Windows FastCGI uses php_fpm_socket = "tcp:127.0.0.1:9000". Never expose a PHP backend on a public network interface.

.user.ini and local php.ini.

Native PHP applies supported .user.ini settings. GalaxyHTTP's managed local profiles apply localized php.ini files through separately isolated PHP workers, with startup identity and private profile ownership. External pools cannot safely switch startup INI configuration per request, so a local php.ini requiring that switch is refused until a managed profile is configured.

Administrator memory/time policy and private configuration paths remain authoritative. Disabling or lowering a user setting cannot unlock startup extensions or expose PHP source. INI inheritance and runtime verification are part of the current candidate's qualification.

Install GalaxyCache.

Update PHP first. The refreshed full PHP 8.5.12 LSAPI bundles include the qualified GalaxyCache 0.5.8 module on Linux x64 and macOS ARM64. PHP executable and dependency bytes are unchanged; the bundle revisions record the Cache refresh. Other platform bundles retain their separately labelled module scope. The standalone catalogue below refuses modules built for a different PHP patch version.

GalaxyCache is a general-purpose native PHP extension. It works independently with PHP behind GalaxyHTTP, Apache or NGINX. Install as the PHP worker account, using its ordinary CLI binary of the same architecture and build.

galaxyhttpd --galaxycache install --galaxycache-root /srv/galaxycache \
  --galaxycache-php /absolute/path/to/php \
  --galaxycache-write-ini /srv/php/30-galaxycache.ini
galaxyhttpd --galaxycache list --galaxycache-root /srv/galaxycache
galaxyhttpd --galaxycache status --galaxycache-root /srv/galaxycache
galaxyhttpd --galaxycache ini --galaxycache-root /srv/galaxycache --galaxycache-php /absolute/path/to/php

The manager verifies the signed catalog, exact PHP patch/ABI/build ID, NTS/ZTS mode, native header, module hash, required API functions and effective backend. A successful CLI probe is recorded separately from serving qualification. Load the generated fragment in your selected PHP configuration and restart that pool at an operator-controlled time.

For Apache or NGINX, load the same ordinary extension="/absolute/path/to/galaxycache.so" directive (or galaxycache.dll on Windows) in the PHP worker's INI. The extension requires no GalaxyHTTP entitlement. Only use a binary matching the signed package's qualified PHP build.

Use explicit application caching.

<?php
$body = galaxycache_remember(
    'catalogue-public', 'products:v1', 60, 'catalogue:v1',
    fn() => json_encode(buildPublicCatalogue(), JSON_THROW_ON_ERROR)
);
header('Content-Type: application/json');
echo $body;

Cache keys must include every relevant variant. Keep private/authenticated, cart/session and nonce-bearing content outside a shared public key. Tags and namespace invalidation apply to the current worker's process-local cache; sibling workers and GalaxyHTTP's static cache are independent.

Optional GalaxyHTTP delivery.

Set the selected site's delivery mode to "galaxycache". A managed worker must first report the actual module version, API functions and backend through a private probe. Quick small replies remain buffered; larger or delayed replies stream under bounded payload admission and cancellation. Unverified/external pools use the buffered fallback for this mode. Explicit true/"auto" streaming remains available independently of GalaxyCache.

[[sites]]
hosts = ["example.test"]
root = "/srv/www/example"
php_fpm_streaming = "galaxycache"
# Keep the generated [sites.php_worker] configuration beneath this site.

The host-owned GALAXYHTTP_GALAXYCACHE_CAPABILITIES CGI parameter advertises the optional adapter's availability. It grants no page-cache bypass. OPcache, APCu, Redis and HTTP request headers do not enable it.

Verified PHP builds.

The PHP 8.5.12 qualification record describes the current security packages. The table below retains earlier serving evidence, including historical PHP 8.5.11 results; those entries are not current download recommendations.

Recommend fixed PHP 8.5.12. Exact patch, SAPI, thread mode, architecture and executed tests are recorded below. GalaxyCache package availability is narrower than the web server's PHP protocol compatibility; an ABI-matched module is required.

PHPBackendPlatform / modeRecorded testsExtensions

Loading the retained PHP serving qualification records.

Additional PHP versions and build variants are supported only to the extent shown by current qualification. Upstream-unsupported legacy runtimes are separate security-backport and distribution work; this preview does not supply unqualified legacy bundles.

Update in place.

Run galaxyhttpd --check-update. When an update is available, the interactive menu offers Install Now, Schedule the Update, or Not Now.

galaxyhttpd --check-update --auto-install installs without the menu. To schedule, use galaxyhttpd --check-update --schedule-install "YYYY-MM-DD HH:MM". The CLI displays the server's timezone, current time and a concrete example; you can also supply an RFC3339 timestamp with an explicit offset.

Installation verifies the signed package and executable, retains the previous binary for rollback, and restarts the matching managed service. Configuration and PHP runtimes retain their own update policies.