File tree Expand file tree Collapse file tree
content/guides/frameworks/laravel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ my-laravel-app/
2121├── docker/
2222│ ├── common/
2323│ │ └── php-fpm/
24- │ │ └── Dockerfile
24+ │ │ ├── Dockerfile
25+ │ │ └── conf.d/
26+ │ │ └── 20-status-path.conf
2527│ ├── development/
2628│ ├── production/
2729│ │ ├── php-fpm/
@@ -136,8 +138,8 @@ COPY --from=builder /usr/local/bin/docker-php-ext-* /usr/local/bin/
136138# -----------------------------------------------------------
137139RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
138140
139- # Enable PHP- FPM status page by modifying zz-docker.conf with sed
140- RUN sed -i '/ \[ www \] /a pm.status_path = /status' / usr/local/etc/php-fpm.d/zz-docker.conf
141+ # Keep the image-provided FPM global config intact and add pool overrides separately
142+ COPY ./docker/common/php-fpm/conf.d/*.conf / usr/local/etc/php-fpm.d/
141143# Update the variables_order to include E (for ENV)
142144# RUN sed -i 's/variables_order = "GPCS"/variables_order = "EGPCS"/' "$PHP_INI_DIR/php.ini"
143145
You can’t perform that action at this time.
0 commit comments