PHP images (Alpine, Ubuntu, ZTS) with php-fpm, Apache2 and NGINX Unit
50K+
This is a docker php image is based on an alpine (and ubuntu) distribution including some tools and php extensions. You can find more details at the respective release pages on github.
The images are published for linux/amd64 and linux/arm64 to:
endava/phpquay.io/endava/phpghcr.io/endava/docker-phpEach release ships a cli image and one image per web server variant:
| Tag | Description |
|---|---|
endava/php:8.5.12 | php cli |
endava/php:8.5.12-fpm | php-fpm listening on port 9000 |
endava/php:8.5.12-apache2 | apache2 with mod_php listening on port 8080 |
endava/php:8.5.12-unit | nginx unit listening on port 8080 |
endava/php:8.5.12-ubuntu[-fpm|-apache2|-unit] | same variants based on ubuntu |
endava/php:8.5.12-zts[-fpm|-apache2|-unit|-frankenphp] | thread safe (ZTS) variants (experimental) |
Run a php application with nginx unit:
$ mkdir public
$ echo '<?php phpinfo();' > public/index.php
$ docker run --rm -p 8080:8080 -v `pwd`/public:/usr/src/app/public endava/php:8.5.12-unit
and open http://localhost:8080. See the README of the respective release branch for more examples (apache2, php-fpm with nginx, cron).
| Version | Branch | Latest Release | Status | Vulnerability Report | Fitness Functions |
|---|---|---|---|---|---|
| 8.5 | release/8.5 | ![]() | ![]() | ||
| 8.4 | release/8.4 | ![]() | ![]() | ||
| 8.3 | release/8.3 | ![]() | ![]() | ||
| 8.2 | release/8.2 | ![]() | ![]() |
| Version | Branch | Latest Release | Status | Vulnerability Report | Fitness Functions |
|---|---|---|---|---|---|
| 8.5 (ZTS) | release/8.5-zts | ![]() | ![]() | — | |
| 8.4 (ZTS) | release/8.4-zts | ![]() | ![]() | ||
| 8.3 (ZTS) | release/8.3-zts | ![]() | ![]() | ||
| 8.2 (ZTS) | release/8.2-zts | ![]() | ![]() | ||
| 8.5 (Ubuntu) | release/8.5-ubuntu | ![]() | ![]() | — | |
| 8.4 (Ubuntu) | release/8.4-ubuntu | ![]() | ![]() | ||
| 8.3 (Ubuntu) | release/8.3-ubuntu | ![]() | ![]() | ||
| 8.2 (Ubuntu) | release/8.2-ubuntu | ![]() | ![]() |
Unsupported as of php's eol list at https://www.php.net/eol.php
| Version | Branch | Latest Release | Status | Vulnerability Report |
|---|---|---|---|---|
| 8.1 | release/8.1 | ![]() | ![]() | |
| 8.1 (Ubuntu) | release/8.1-ubuntu | ![]() | ![]() | |
| 8.0 | release/8.0 | ![]() | ![]() |
This is the successor of the deprecated exozet/php-fpm docker image. We collected ideas on how a new (including breaking changes) version of our heavily used php-fpm image could look like.
We figured that our old approach had some disadvantages (it was a php-fpm build based on official docker php images):
The new approach has some advantages:
The new approach has a disadvantage:
Each release/X.Y branch is an independent image line. Its PHP point version
is pinned in that branch's Dockerfile; changes to main do not update release
branches automatically.
For a release update:
release/X.Y
branch.ARM64 jobs run on GitHub-hosted ubuntu-24.04-arm runners. This README update
is ready to merge only after each corresponding release tag, vulnerability
report, and image-size artifact exists; unreleased versions must not be
published in the live README.
The "Latest Release" links in this README are updated automatically: after each
security scan, the README Latest Releases workflow opens a pull request that
points every release line to its newest release with uploaded vulnerability and
size reports. Merging that pull request also updates the Docker Hub overview.
Please refer to CONTRIBUTING.md.
See the Maintainer Guide for recurring maintenance and release tasks.
Please refer to LICENSE.
Content type
Image
Digest
sha256:9947c09ee…
Size
188 MB
Last updated
14 days ago
docker pull endava/php:8.4.27-zts