shinsenter / php

📦 Simplified PHP Docker images for effortless customization and extension setup. Our Docker images cover PHP versions from 5.6 to 8.4, available in CLI, ZTS, FPM, FPM/Apache2, FPM/Nginx, RoadRunner, FrankenPHP, and Nginx Unit variants, for both Debian and Alpine versions. Updated everyday.
https://hub.docker.com/r/shinsenter/php
GNU General Public License v3.0
165 stars 26 forks source link

env FIX_APP_PATH_PERMISSION=0 is not working #140

Closed LittleTrickster closed 3 months ago

LittleTrickster commented 3 months ago

FIX_APP_PATH_PERMISSION=0 is not working

Mounted html folder chmod permissions are being modified on start and I want them to stay.

shinsenter commented 3 months ago

@LittleTrickster

I think it's not chmod but chown. This ensures that when you run the web application using the user defined by the $APP_USER variable, the processes can read and write files in the web root directory.

Although it is not documented yet, to disable running chown when the container starts, please try using DISABLE_AUTORUN_FIX_OWNER_GROUP=1.

LittleTrickster commented 3 months ago

DISABLE_AUTORUN_FIX_OWNER_GROUP=1 did not work.

What it does for me chown $APP_UID:$APP_GID and chmod 755 to html folder

shinsenter commented 3 months ago

@LittleTrickster

I will check the startup flows of the Docker images and fix any issues if necessary.

Could you please provide me with more information about the Docker version and the operating system you’re using?

shinsenter commented 3 months ago

@LittleTrickster Could you help me try pulling the latest Docker images and give it another shot?

LittleTrickster commented 3 months ago

@shinsenter Now it works when $APP_UID matches html folder owner otherwise, it changes it to 755. This is a lot better than it was before.

shinsenter commented 3 months ago

@LittleTrickster Thank you for the feedback!