Skip to content

fix(runtime): run php-fpm as remapped user#54

Merged
ddtcorex merged 1 commit into
ddtcorex:masterfrom
dkh94:fix/symfony-env-permissions
May 28, 2026
Merged

fix(runtime): run php-fpm as remapped user#54
ddtcorex merged 1 commit into
ddtcorex:masterfrom
dkh94:fix/symfony-env-permissions

Conversation

@dkh94
Copy link
Copy Markdown
Contributor

@dkh94 dkh94 commented May 28, 2026

Relaunch PHP-FPM as the remapped www-data user after the container entrypoint updates UID/GID from PUID/PGID.

Without this, docker exec resolves www-data to the host UID after startup, but the long-running php-fpm master and worker processes can remain on the original image UID 1000. That breaks reads for files owned by the remapped host UID, such as restrictive Symfony .env.local files.

Adds a regression check for the entrypoint behavior.

@dkh94 dkh94 requested a review from ddtcorex as a code owner May 28, 2026 08:40
@dkh94 dkh94 force-pushed the fix/symfony-env-permissions branch from b6f0e88 to 7226f95 Compare May 28, 2026 08:44
@dkh94 dkh94 changed the title fix(runtime): repair dotenv permissions on env up fix(runtime): run php-fpm as remapped user May 28, 2026
@ddtcorex ddtcorex merged commit b2638cd into ddtcorex:master May 28, 2026
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.

2 participants