Add environment var to set `apc.shm_size` php config
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 7.4k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing PHP_UPLOAD_LIMIT environment-variable handling in the Docker image and identify where PHP configuration values are generated. Add equivalent handling for PHP_APC_SHM_SIZE so it controls apc.shm_size, then verify the resulting PHP configuration inside a container.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, php, shell
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 70/100