Skip to content

Commit 56dfcaf

Browse files
andypotaninclaude
andcommitted
Fix www.conf ownership to allow runtime PHP-FPM overrides
The pool.d directory and www.conf were owned by root, preventing the non-root udx user (uid 500) from applying PHP_FPM_MAX_CHILDREN and other overrides via 35_phpfpm.sh at container startup. Ref icamiami/icamiami.org#1923 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 26b0f90 commit 56dfcaf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ RUN sed -i "s|^error_log =.*|error_log = /dev/stderr|" /etc/php/"${PHP_VERSION}"
5757
sed -i "s|^listen.owner =.*|listen.owner = ${USER}|" /etc/php/"${PHP_VERSION}"/fpm/pool.d/www.conf && \
5858
sed -i "s|^listen.group =.*|listen.group = ${USER}|" /etc/php/"${PHP_VERSION}"/fpm/pool.d/www.conf && \
5959
sed -i "s|^listen.mode =.*|listen.mode = 0660|" /etc/php/"${PHP_VERSION}"/fpm/pool.d/www.conf && \
60-
chown -R "${USER}:${USER}" /var/log/php/fpm.log
60+
chown -R "${USER}:${USER}" /var/log/php/fpm.log && \
61+
chown -R "${USER}:${USER}" /etc/php/"${PHP_VERSION}"/fpm/pool.d
6162

6263
# Copy entrypoint script and set permissions
6364
COPY ./bin/start-nginx.sh /usr/local/bin/start-nginx.sh

0 commit comments

Comments
 (0)