Hardened PHP 7.4.33-31 FPM, Debian 13. Patched for PHP2Shell (CVE-2026-109618/109619). Non-root.
38
A small, locked-down PHP-FPM 7.4.33 image on debian:trixie-slim, built from
packages.sury.org with backported security fixes, including
CVE-2026-109618 and CVE-2026-109619 (PHP2Shell). Made for running legacy PHP 7.4 apps safely.
PHP-FPM only (port 9000). Put nginx, Apache or Caddy in front of it.
| Tag | Contents |
|---|---|
v1.0.0 | PHP 7.4.33-31 (Sury), Debian 13.7 slim |
latest | Most recent release |
opcache, curl, intl, mbstring, mysql (mysqli / PDO), xml, zip + corephp (UID/GID 10001), no setuid binaries--read-only, --cap-drop ALL and no-new-privilegesopen_basedir, no remote includes, dangerous functions disabled in FPM,
strict session cookies, conservative limitsHEALTHCHECKdocker run -d --name php \
--read-only \
--tmpfs /tmp:rw,noexec,nosuid,nodev,size=64m \
--tmpfs /var/lib/php/sessions:rw,noexec,nosuid,nodev,size=16m,mode=1733 \
--cap-drop ALL --security-opt no-new-privileges:true \
-v "$PWD/app:/var/www/html:ro" \
milanzdravkovic/php7.4-apache2-deb:v1.0.0
nginx location block:
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
fastcgi_pass php:9000;
}
clear_env = yes. Pass what PHP needs via a pool file in
/etc/php/7.4/fpm/pool.d/, e.g. env[DB_HOST] = $DB_HOST..ini into /etc/php/7.4/fpm/conf.d/ (e.g. zz-app.ini).Secure cookies (HTTPS only). Set session.cookie_secure = 0 for local HTTP.PHP_EXTENSIONS, PHP_DISABLE_FUNCTIONS, PHP_UID, PHP_VERSION.Content type
Image
Digest
sha256:066534b6e…
Size
59.1 MB
Last updated
about 13 hours ago
docker pull milanzdravkovic/php7.4-apache2-deb