Repository navigation
Conversation
Expose apc.shm_size through the existing PHP INI environment-variable pattern in both image templates, keeping the current 32M default. Document how to raise APCu memory independently of OPcache. Assisted-by: Codex:GPT-6 Signed-off-by: Vladimir Ischenko <kulemin1991@gmail.com>
isboston
force-pushed
the
codex/php-apcu-shm-size
branch
from
November 18, 2026 08:52
765ce65 to
211e15b
Compare
isboston
marked this pull request as ready for review
November 18, 2026 11:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2462.
APCu memory currently cannot be configured through the image's environment variables. On the published image, setting
PHP_APC_SHM_SIZE=128Mstill leavesapc.shm_sizeat 32M. Increasing OPcache memory does not change this separate cache.Add
PHP_APC_SHM_SIZEto the Debian and Alpine templates using the existing PHP INI environment-substitution pattern. The default remains 32M. The README documents a 128M example and links to Nextcloud's APCu sizing guidance.Validation on an Ubuntu 24.04 amd64 VM, applying the exact added configuration directives as small layers on the official Nextcloud 35.0.3
apache,fpm, andfpm-alpineimages:ini_get()and actual allocation reported byapcu_sma_info().git diff --checkpassed.These were focused configuration/runtime checks; full source image builds were not run locally.
🤖 AI (if applicable)
Codex assisted with the patch, description, and automated validation.