Skip to content

Commit 89cd367

Browse files
authored
Merge pull request #39 from devilbox/release-0.27
Sane defaults for php.ini
2 parents b66ddfb + 99754af commit 89cd367

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+699
-29
lines changed

Dockerfiles/base/Dockerfile-5.3

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ RUN set -x \
5656
###
5757
### Copy files
5858
###
59+
COPY ./data/php.d/php-5.3.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
5960
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
6061
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
6162
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

Dockerfiles/base/Dockerfile-5.4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ RUN set -x \
5656
###
5757
### Copy files
5858
###
59+
COPY ./data/php.d/php-5.4.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
5960
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
6061
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
6162
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

Dockerfiles/base/Dockerfile-5.5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ RUN set -x \
5656
###
5757
### Copy files
5858
###
59+
COPY ./data/php.d/php-5.5.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
5960
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
6061
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
6162
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

Dockerfiles/base/Dockerfile-5.6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ RUN set -x \
5656
###
5757
### Copy files
5858
###
59+
COPY ./data/php.d/php-5.6.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
5960
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
6061
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
6162
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

Dockerfiles/base/Dockerfile-7.0

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ RUN set -x \
5656
###
5757
### Copy files
5858
###
59+
COPY ./data/php.d/php-7.0.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
5960
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
6061
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
6162
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

Dockerfiles/base/Dockerfile-7.1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ RUN set -x \
5656
###
5757
### Copy files
5858
###
59+
COPY ./data/php.d/php-7.1.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
5960
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
6061
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
6162
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

Dockerfiles/base/Dockerfile-7.2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ RUN set -x \
5656
###
5757
### Copy files
5858
###
59+
COPY ./data/php.d/php-7.2.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
5960
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
6061
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
6162
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

Dockerfiles/base/Dockerfile-7.3

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ RUN set -x \
5656
###
5757
### Copy files
5858
###
59+
COPY ./data/php.d/php-7.3.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
5960
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
6061
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
6162
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
; ############################################################
2+
; # Devilbox PHP defaults for all Docker images
3+
; ############################################################
4+
5+
; This php.ini is applied to the base container and inherited
6+
; by every image built on top of it.
7+
; Note that prod and work images overwrite specific settings
8+
; for their use-case.
9+
10+
11+
[PHP]
12+
13+
; Memory
14+
; Note: "memory_limit" should be larger than "post_max_size"
15+
memory_limit = 512M
16+
17+
18+
; Timeouts
19+
max_execution_time = 180
20+
max_input_time = 180
21+
22+
23+
; Uploads
24+
; Note: "post_max_size" should be greater than "upload_max_filesize"
25+
post_max_size = 384M
26+
upload_max_filesize = 256M
27+
max_file_uploads = 20
28+
29+
30+
; Vars
31+
variables_order = EGPCS
32+
max_input_nesting_level = 64
33+
34+
35+
; Error reporting
36+
; Note: error_log is dynamic and handled during start to set appropriate setting
37+
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
38+
xmlrpc_errors = Off
39+
report_memleaks = On
40+
display_errors = Off
41+
display_startup_errors = Off
42+
track_errors = On
43+
log_errors = On
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
; ############################################################
2+
; # Devilbox PHP defaults for all Docker images
3+
; ############################################################
4+
5+
; This php.ini is applied to the base container and inherited
6+
; by every image built on top of it.
7+
; Note that prod and work images overwrite specific settings
8+
; for their use-case.
9+
10+
11+
[PHP]
12+
13+
; Memory
14+
; Note: "memory_limit" should be larger than "post_max_size"
15+
memory_limit = 512M
16+
17+
18+
; Timeouts
19+
max_execution_time = 180
20+
max_input_time = 180
21+
22+
23+
; Uploads
24+
; Note: "post_max_size" should be greater than "upload_max_filesize"
25+
post_max_size = 384M
26+
upload_max_filesize = 256M
27+
max_file_uploads = 20
28+
29+
30+
; Vars
31+
variables_order = EGPCS
32+
max_input_vars = 8000
33+
max_input_nesting_level = 64
34+
35+
36+
; Error reporting
37+
; Note: error_log is dynamic and handled during start to set appropriate setting
38+
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
39+
xmlrpc_errors = Off
40+
report_memleaks = On
41+
display_errors = Off
42+
display_startup_errors = Off
43+
track_errors = On
44+
log_errors = On

0 commit comments

Comments
 (0)