Run PHP as root:root

This commit is contained in:
Aditya Prima 2023-12-19 19:30:40 +07:00
parent 4f657263b9
commit e37dd8c1bd
2 changed files with 8 additions and 8 deletions

View File

@ -17,10 +17,10 @@ ENV PHP_FPM_BIN=php-fpm${PHP_VERSION}
WORKDIR /root
# Add user and group www-data
RUN mkdir -p /usr/www
RUN addgroup -g 1010 www-data; exit 0
RUN adduser -u 1010 -D -H -h /usr/www -G www-data www-data
RUN adduser www-data tty
# RUN mkdir -p /usr/www
# RUN addgroup -g 1010 www-data; exit 0
# RUN adduser -u 1010 -D -H -h /usr/www -G www-data www-data
# RUN adduser www-data tty
# INSTALL PHP APP
RUN --mount=type=cache,target=/var/cache/apk \

View File

@ -1,12 +1,12 @@
[www]
;prefix = /path/to/pools/$pool
user = www-data
group = www-data
user = root
group = root
listen = 9000
listen.owner = www-data
listen.group = www-data
listen.owner = root
listen.group = root
;listen.mode = 0660
;listen.acl_users =
;listen.acl_groups =