2026-11-19 11:32:25 -08:00
|
|
|
#!/usr/bin/env bash
|
2026-11-19 11:37:57 -08:00
|
|
|
# PHP 8.6 (Remi EL10 modular php:remi-8.6). Same package set as install-php85.sh.
|
|
|
|
|
# php-pecl-geoip is provided on 8.6 by Remi's maintained fork php-rlerdorf-geoip.
|
|
|
|
|
# Fails loudly (set -e) instead of the older scripts' "exit 0".
|
2026-11-19 11:32:25 -08:00
|
|
|
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 \
|
2026-11-19 11:37:57 -08:00
|
|
|
php-pecl-redis5 php-pecl-memcached php-pecl-memcache php-pecl-ip2location php-pecl-imagick php-pecl-geoip \
|
2026-11-19 11:32:25 -08:00
|
|
|
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)
|
2026-11-19 11:37:57 -08:00
|
|
|
for ext in mysqlnd gd intl soap sodium zip mbstring xml pgsql redis memcached memcache imagick ip2location xmlrpc geoip; do
|
|
|
|
|
grep -qix "$ext" <<<"$loaded" || { echo "FATAL: PHP 8.6 extension '$ext' not loaded" >&2; exit 1; }
|
2026-11-19 11:32:25 -08:00
|
|
|
done
|
|
|
|
|
exit 0
|