feat: PHP 8.6 for cac and cac-fpm (Remi php:remi-8.6), per-family version lists in plan-legs
install-php86.sh = install-php85.sh minus php-pecl-geoip (no 8.6 build), fail-loud with extension assertion. plan-legs.sh: per-family lists so cac/cac-fpm get 82-86 while cac-litespeed/cac-lsphp stay 82-85 (no lsphp86). :latest stays on php85. ini files are shared (single prod-php.ini), so 8.5 hardening incl. session.use_strict_mode=0 applies unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
e6e3f1fd48
commit
854042b1c3
5 files changed
+60
-19
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# PHP 8.6 (Remi EL10 modular php:remi-8.6). Same package set as install-php85.sh
|
||||
# MINUS php-pecl-geoip: Remi has no 8.6 build of it (and PECL GeoIP is dead
|
||||
# upstream). Fails loudly (set -e) instead of the older scripts' "exit 0".
|
||||
set -euo pipefail
|
||||
dnf module enable php:remi-8.6 -y
|
||||
dnf install -y php php-fpm php-mysqlnd php-xml php-pecl-zip php-sodium php-soap php-pecl-xmlrpc \
|
||||
php-pecl-redis5 php-pecl-memcached php-pecl-memcache php-pecl-ip2location php-pecl-imagick \
|
||||
php-mysqlnd php-mbstring php-intl php-gd php-pgsql libzip php-cli
|
||||
# A silently missing extension must fail the build, not ship.
|
||||
loaded=$(php -m)
|
||||
for ext in mysqlnd gd intl soap sodium zip mbstring xml pgsql redis memcached memcache imagick ip2location xmlrpc; do
|
||||
printf '%s\n' "$loaded" | grep -qix "$ext" || { echo "FATAL: PHP 8.6 extension '$ext' not loaded" >&2; exit 1; }
|
||||
done
|
||||
exit 0
|
||||
Reference in new issue
Block a user