Switch to official php:8.5.8-fpm-trixie image, fix extension/FPM build issues

Rebuild on the official PHP image instead of Sury's repo on bare Debian.
Fixes surfaced along the way: missing pkg-config/libonig-dev broke the
zip/mbstring extension builds, purging libzip-dev also auto-removed the
libzip5 runtime lib the compiled zip.so needs, phpredis needed bumping to
6.3.0 for PHP 8.5 header compatibility, and the php-fpm.conf listen
directive sed didn't match the commented-out default line so FPM never
created its unix socket, causing 503s from Apache's proxy_fcgi handler.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
code
2026-07-20 16:27:40 +00:00
parent 546c49767f
commit 6ddd151ed1
5 changed files with 83 additions and 80 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
service php8.5-fpm start
php-fpm -D
exec apachectl -D FOREGROUND
exec apachectl -D FOREGROUND