File tree Expand file tree Collapse file tree 5 files changed +18
-8
lines changed
etc/nginx/sites-available Expand file tree Collapse file tree 5 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,11 @@ export PHP_UPLOAD_MAX_FILESIZE=${PHP_UPLOAD_MAX_FILESIZE:-50M}
51
51
export PHP_POST_MAX_SIZE=${PHP_POST_MAX_SIZE:- 50M}
52
52
export PHP_MAX_INPUT_TIME=${PHP_MAX_INPUT_TIME:- 300}
53
53
54
+ export PHP_FCGI_CHILDREN=${PHP_FCGI_CHILDREN:- 5}
55
+ export PHP_FCGI_START_SERVERS=${PHP_FCGI_START_SERVERS:- 2}
56
+ export PHP_FCGI_SPARE_SERVERS=${PHP_FCGI_SPARE_SERVERS:- 1}
57
+ export PHP_FCGI_MAX_REQUESTS=${PHP_FCGI_MAX_REQUESTS:- 0}
58
+
54
59
export PHP_SESSION_TIMEOUT=${PHP_SESSION_TIMEOUT:- 60}
55
60
export PHP_SESSION_COOKIE_TIMEOUT=${PHP_SESSION_COOKIE_TIMEOUT:- 10080}
56
61
export PHP_SESSION_DEFAULTS=${PHP_SESSION_DEFAULTS:- php}
Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ init_nginx() {
343
343
if [[ " $FASTCGI_STATUS_LISTEN " != " " ]]; then
344
344
echo " ... enabling php-fpm status page"
345
345
ln -s /etc/nginx/sites-available/php-fpm-status /etc/nginx/sites-enabled/php-fpm-status
346
- sed -i -E " s/ listen [^;]+/ listen $FASTCGI_STATUS_LISTEN " /etc/nginx/sites-enabled/php-fpm-status
346
+ sed -i -E " s/ listen [^;]+/ listen $FASTCGI_STATUS_LISTEN / " /etc/nginx/sites-enabled/php-fpm-status
347
347
elif [[ -f /etc/nginx/sites-enabled/php-fpm-status ]]; then
348
348
echo " ... disabling php-fpm status page"
349
349
rm /etc/nginx/sites-enabled/php-fpm-status
Original file line number Diff line number Diff line change 5
5
include fastcgi_params;
6
6
fastcgi_pass unix:/run/php/php-fpm-status.sock;
7
7
}
8
- }
8
+ }
Original file line number Diff line number Diff line change @@ -194,12 +194,18 @@ services:
194
194
- " FASTCGI_READ_TIMEOUT=${FASTCGI_READ_TIMEOUT:-300s}"
195
195
- " FASTCGI_SEND_TIMEOUT=${FASTCGI_SEND_TIMEOUT:-300s}"
196
196
- " FASTCGI_CONNECT_TIMEOUT=${FASTCGI_CONNECT_TIMEOUT:-300s}"
197
+ - " FASTCGI_STATUS_LISTEN=${FASTCGI_STATUS_LISTEN}"
197
198
# PHP settings
198
199
- " PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT:-2048M}"
199
200
- " PHP_MAX_EXECUTION_TIME=${PHP_MAX_EXECUTION_TIME:-300}"
200
201
- " PHP_UPLOAD_MAX_FILESIZE=${PHP_UPLOAD_MAX_FILESIZE:-50M}"
201
202
- " PHP_POST_MAX_SIZE=${PHP_POST_MAX_SIZE:-50M}"
202
203
- " PHP_MAX_INPUT_TIME:${PHP_MAX_INPUT_TIME:-300}"
204
+ # PHP FPM pool setup
205
+ - " PHP_FCGI_CHILDREN=${PHP_FCGI_CHILDREN:-5}"
206
+ - " PHP_FCGI_START_SERVERS=${PHP_FCGI_START_SERVERS:-2}"
207
+ - " PHP_FCGI_SPARE_SERVERS=${PHP_FCGI_SPARE_SERVERS:-1}"
208
+ - " PHP_FCGI_MAX_REQUESTS=${PHP_FCGI_MAX_REQUESTS:-0}"
203
209
# Additional PHP settings
204
210
- " PHP_SESSION_TIMEOUT=${PHP_SESSION_TIMEOUT:-60}"
205
211
- " PHP_SESSION_COOKIE_TIMEOUT=${PHP_SESSION_COOKIE_TIMEOUT:-10080}"
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ SYNCSERVERS_1_PULL_RULES=
183
183
# FASTCGI_READ_TIMEOUT=300s
184
184
# FASTCGI_SEND_TIMEOUT=300s
185
185
# FASTCGI_CONNECT_TIMEOUT=300s
186
- # Whete to listen to PHP-FPM status. Can be a port or a ip:port. If not set the status page will not be shown.
186
+ # Where to listen to PHP-FPM status. Can be a port or a ip:port. If not set the status page will not be shown.
187
187
# Do not expose this page in public networks.
188
188
# FASTCGI_STATUS_LISTEN=""
189
189
@@ -203,14 +203,13 @@ SYNCSERVERS_1_PULL_RULES=
203
203
204
204
# # PHP FPM pool setup
205
205
# Maximum number of php-fpm processes, limits the number of simultaneous requests.
206
- PHP_FCGI_CHILDREN = " 5 "
206
+ # PHP_FCGI_CHILDREN=5
207
207
# Number of processes created on startup.
208
- PHP_FCGI_START_SERVERS = " 2 "
208
+ # PHP_FCGI_START_SERVERS=2
209
209
# The desired number of idle server processes.
210
- PHP_FCGI_SPARE_SERVERS = " 1 "
210
+ # PHP_FCGI_SPARE_SERVERS=1
211
211
# The number of requests each process should execute before respawning. "0" means endless request processing.
212
- PHP_FCGI_MAX_REQUESTS = " 0"
213
-
212
+ # PHP_FCGI_MAX_REQUESTS=0
214
213
215
214
# # Additional PHP settings
216
215
# Timeout (in minutes) for user session inactivity before it expires.
You can’t perform that action at this time.
0 commit comments