Skip to content

Build Adminer on the Apache variant of wodby/php - #22

Merged
csandanov merged 2 commits into
masterfrom
feature/wodby-php-base
Nov 5, 2026
Merged

csandanov merged 2 commits into
masterfrom
feature/wodby-php-base

Conversation

@csandanov

@csandanov csandanov commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Problem

The Adminer image is built on the official Debian-based php:8.4-apache image, unlike the other Wodby PHP images. It doesn't get the Alpine package updates, PHP builds and security scanning that wodby/php images get, and its base isn't pinned, so every rebuild may pick up a different base.

Cause

Adminer needs a web server and PHP in one container, and until now wodby/php only ran PHP-FPM.

Solution

Build Adminer on the new Apache variant of wodby/php (8.4), pinned by digest like the other images. Apache serves Adminer and passes PHP to PHP-FPM in the same container. Port 80, ADMINER_* variables, designs, plugins and PHP limits work as before. The container still starts as root, so it keeps running where privilege escalation is disallowed, as the Kubernetes chart sets; Apache and PHP-FPM serve requests as www-data.

Details

  • base-images.mk pins wodby/php:8.4-apache-rN; the workflow sets BASE_IMAGE_REVISION.
  • entrypoint.sh becomes init/20-adminer.sh, which the wodby/php entrypoint sources before the main command. An unknown design or plugin still stops the container before it serves requests.
  • PHP_FPM_CLEAR_ENV=no, because Adminer reads its login defaults with getenv() and wodby/php clears PHP-FPM's environment by default.
  • adminer.ini is gone: wodby/php reads PHP_MAX_EXECUTION_TIME, PHP_MEMORY_LIMIT, PHP_POST_MAX_SIZE and PHP_UPLOAD_MAX_FILESIZE itself.
  • APACHE_FCGI_PROXY_TIMEOUT is one day, so long imports and exports aren't cut off by Apache while PHP's own limit is 0.
  • Compatibility: Apache configuration mounted into Debian paths must move to /etc/apache2/conf.d/*.conf, as the README now explains.
  • New test: the homepage with --security-opt no-new-privileges, and Apache and PHP-FPM serving as www-data.

Validation

Built locally on arm64 on the published, digest-pinned wodby/php:8.4-apache-r12. make test passes:

  • designs and their CSS;
  • several plugins, and unknown plugins refused before startup;
  • login defaults, including escaping;
  • PHP limits, default and overridden;
  • the new no-new-privileges and user checks.

Before merging

This repository builds only on master and tags, so CI first runs after the merge.

The image was built on the official Debian php:8.4-apache image, unlike
the other Wodby PHP images, and its base wasn't pinned. It now uses
wodby/php:8.4-apache, pinned by digest, where Apache passes PHP to
PHP-FPM in the same container.

Designs and plugins are set up by an init script the wodby/php
entrypoint sources, and PHP limits use wodby/php's own variables. The
container still starts as root, so it runs where privilege escalation is
disallowed; Apache and PHP-FPM serve requests as www-data. A new test
covers that case.
wodby/php r12 is the first release with the Apache variant. Its 8.4-apache-r12 digest is the base of this image.
@csandanov
csandanov marked this pull request as ready for review November 5, 2026 01:50
@csandanov
csandanov merged commit 74d1f29 into master Nov 5, 2026
@csandanov
csandanov deleted the feature/wodby-php-base branch November 5, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant