You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add environment var to set apc.shm_size php config #2462
When I got the warning that the apc.shm_size is almost full It took me a long time to figure out how to cleanly fix it in docker and where the config PHP is stored.
It feels a bit odd to me that a setting that the docs recommend to change requires me to figure out where the PHP config dir is and add a file to it.
I would suggest adding a PHP_APC_SHM_SIZE environment variable similar to PHP_UPLOAD_LIMIT.
Reacted by b-a0, p7kdev, a-petrovich, Henrique Custódio, Felicia Hummel, PolGZ, Sascha Brockel, Matthew Wells, isdnfan, Marc Urben and 2 more
When I got the warning that the apc.shm_size is almost full It took me a long time to figure out how to cleanly fix it in docker and where the config PHP is stored.
And which file was the right one to edit this option?
And which file was the right one to edit this option?
I added the line apc.shm_size=128M
to the file /etc/php/8.2/cli/conf.d/20-apcu.ini
did a systemctl restart php8.2-fpm.service
and the warning disappeared. It would have been really nice if there had been a note about this somewhere.
Activity
[-]Add enviroment var to set `apc.shm_size`[/-][+]Add environment var to set `apc.shm_size` php config[/+]saschabrockel commentedon Nov 22, 2025
Agreed. I have no idea where the correct
php.iniis.cpunk commentedon Dec 14, 2025
And which file was the right one to edit this option?
cpunk commentedon Dec 18, 2025
I added the line
apc.shm_size=128Mto the file
/etc/php/8.2/cli/conf.d/20-apcu.inidid a
systemctl restart php8.2-fpm.serviceand the warning disappeared. It would have been really nice if there had been a note about this somewhere.
oxivanisher commentedon Jul 24, 2026
I get this warning now too. This would be really nice if its configurable as a environment variable.