Skip to content

Commit 1df3a18

Browse files
committed
Fix status path
1 parent 08dc591 commit 1df3a18

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

content/guides/frameworks/laravel/production-setup.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
# -----------------------------------------------------------
137139
RUN 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

0 commit comments

Comments
 (0)