Skip to content

Opcache file permission setting#22479

Open
jack-worman wants to merge 1 commit into
php:masterfrom
jack-worman:opcache-file-permission-setting
Open

Opcache file permission setting#22479
jack-worman wants to merge 1 commit into
php:masterfrom
jack-worman:opcache-file-permission-setting

Conversation

@jack-worman

@jack-worman jack-worman commented Jun 27, 2026

Copy link
Copy Markdown

The PR adds a new ini setting to control the file permissions of cached opcache files.

Fixes: #22226
Could also fix: #22289

My personal use case of this would be:

  • www-data will make cache files from the apache context
  • cli-user will make cache files from the cli context
  • both users can use each others cached files
  • the cli-user can clean up old cache files from www-data/cli-user

@jack-worman jack-worman force-pushed the opcache-file-permission-setting branch 4 times, most recently from 9b63378 to ff8b0ad Compare June 29, 2026 01:40
@jack-worman jack-worman force-pushed the opcache-file-permission-setting branch from ff8b0ad to 8007ecd Compare June 29, 2026 01:46
@jack-worman jack-worman marked this pull request as ready for review June 29, 2026 13:34
@jack-worman jack-worman requested a review from dstogov as a code owner June 29, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opcache, file caching: Avoid problems with multiple pools/users specify umask for opache.file_cache

1 participant