Skip to content

Commit b2a7e7b

Browse files
committed
Ensure memory_limit, post_max_size and upload_max_filesize have a correct ration
1 parent 9c9d325 commit b2a7e7b

File tree

9 files changed

+27
-9
lines changed

9 files changed

+27
-9
lines changed

Dockerfiles/base/data/php.d/php-5.3.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[PHP]
1212

1313
; Memory
14+
; Note: "memory_limit" should be larger than "post_max_size"
1415
memory_limit = 512M
1516

1617

@@ -20,7 +21,8 @@ max_input_time = 180
2021

2122

2223
; Uploads
23-
post_max_size = 256M
24+
; Note: "post_max_size" should be greater than "upload_max_filesize"
25+
post_max_size = 384M
2426
upload_max_filesize = 256M
2527
max_file_uploads = 20
2628

Dockerfiles/base/data/php.d/php-5.4.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[PHP]
1212

1313
; Memory
14+
; Note: "memory_limit" should be larger than "post_max_size"
1415
memory_limit = 512M
1516

1617

@@ -20,7 +21,8 @@ max_input_time = 180
2021

2122

2223
; Uploads
23-
post_max_size = 256M
24+
; Note: "post_max_size" should be greater than "upload_max_filesize"
25+
post_max_size = 384M
2426
upload_max_filesize = 256M
2527
max_file_uploads = 20
2628

Dockerfiles/base/data/php.d/php-5.5.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[PHP]
1212

1313
; Memory
14+
; Note: "memory_limit" should be larger than "post_max_size"
1415
memory_limit = 512M
1516

1617

@@ -20,7 +21,8 @@ max_input_time = 180
2021

2122

2223
; Uploads
23-
post_max_size = 256M
24+
; Note: "post_max_size" should be greater than "upload_max_filesize"
25+
post_max_size = 384M
2426
upload_max_filesize = 256M
2527
max_file_uploads = 20
2628

Dockerfiles/base/data/php.d/php-5.6.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[PHP]
1212

1313
; Memory
14+
; Note: "memory_limit" should be larger than "post_max_size"
1415
memory_limit = 512M
1516

1617

@@ -20,7 +21,8 @@ max_input_time = 180
2021

2122

2223
; Uploads
23-
post_max_size = 256M
24+
; Note: "post_max_size" should be greater than "upload_max_filesize"
25+
post_max_size = 384M
2426
upload_max_filesize = 256M
2527
max_file_uploads = 20
2628

Dockerfiles/base/data/php.d/php-7.0.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[PHP]
1212

1313
; Memory
14+
; Note: "memory_limit" should be larger than "post_max_size"
1415
memory_limit = 512M
1516

1617

@@ -20,7 +21,8 @@ max_input_time = 180
2021

2122

2223
; Uploads
23-
post_max_size = 256M
24+
; Note: "post_max_size" should be greater than "upload_max_filesize"
25+
post_max_size = 384M
2426
upload_max_filesize = 256M
2527
max_file_uploads = 20
2628

Dockerfiles/base/data/php.d/php-7.1.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[PHP]
1212

1313
; Memory
14+
; Note: "memory_limit" should be larger than "post_max_size"
1415
memory_limit = 512M
1516

1617

@@ -20,7 +21,8 @@ max_input_time = 180
2021

2122

2223
; Uploads
23-
post_max_size = 256M
24+
; Note: "post_max_size" should be greater than "upload_max_filesize"
25+
post_max_size = 384M
2426
upload_max_filesize = 256M
2527
max_file_uploads = 20
2628

Dockerfiles/base/data/php.d/php-7.2.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[PHP]
1212

1313
; Memory
14+
; Note: "memory_limit" should be larger than "post_max_size"
1415
memory_limit = 512M
1516

1617

@@ -20,7 +21,8 @@ max_input_time = 180
2021

2122

2223
; Uploads
23-
post_max_size = 256M
24+
; Note: "post_max_size" should be greater than "upload_max_filesize"
25+
post_max_size = 384M
2426
upload_max_filesize = 256M
2527
max_file_uploads = 20
2628

Dockerfiles/base/data/php.d/php-7.3.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[PHP]
1212

1313
; Memory
14+
; Note: "memory_limit" should be larger than "post_max_size"
1415
memory_limit = 512M
1516

1617

@@ -20,7 +21,8 @@ max_input_time = 180
2021

2122

2223
; Uploads
23-
post_max_size = 256M
24+
; Note: "post_max_size" should be greater than "upload_max_filesize"
25+
post_max_size = 384M
2426
upload_max_filesize = 256M
2527
max_file_uploads = 20
2628

build/ansible/CONFIGURATION/php-base.ini.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[PHP]
1212

1313
; Memory
14+
; Note: "memory_limit" should be larger than "post_max_size"
1415
memory_limit = 512M
1516

1617

@@ -20,7 +21,8 @@ max_input_time = 180
2021

2122

2223
; Uploads
23-
post_max_size = 256M
24+
; Note: "post_max_size" should be greater than "upload_max_filesize"
25+
post_max_size = 384M
2426
upload_max_filesize = 256M
2527
max_file_uploads = 20
2628

0 commit comments

Comments
 (0)