Skip to content

Commit 7cde826

Browse files
committed
🔥 clean custom configs
1 parent 4044a94 commit 7cde826

File tree

3 files changed

+100
-286
lines changed

3 files changed

+100
-286
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ RUN docker-php-ext-install zip pdo_mysql tokenizer bcmath opcache pcntl \
7474

7575
# Copy our configs to the image.
7676
COPY ./config/custom.ini /usr/local/etc/php/conf.d
77-
COPY ./config/pool.d/custom.conf /usr/local/etc/php-fpm.d/
7877

7978
# Expose port 9000 and start php-fpm server
8079
CMD ["php-fpm"]

config/custom.ini

Lines changed: 94 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,109 @@
1+
[PHP]
2+
;;;;;;;;;;;;;;;;;;;
3+
; About php.ini ;
4+
;;;;;;;;;;;;;;;;;;;
5+
; PHP's initialization file, generally called php.ini, is responsible for
6+
; configuring many of the aspects of PHP's behavior.
7+
8+
[Date]
9+
; Defines the default timezone used by the date functions
10+
; http://php.net/date.timezone
111
date.timezone=UTC
12+
13+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
14+
; Error handling and logging ;
15+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16+
17+
; This directive controls whether or not and where PHP will output errors,
18+
; notices and warnings too. Error output is very useful during development, but
19+
; it could be very dangerous in production environments. Depending on the code
20+
; which is triggering the error, sensitive information could potentially leak
21+
; out of your application such as database usernames and passwords or worse.
22+
; For production environments, we recommend logging errors rather than
23+
; sending them to STDOUT.
24+
; Possible Values:
25+
; Off = Do not display any errors
26+
; stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
27+
; On or stdout = Display errors to STDOUT
28+
; Default Value: On
29+
; Development Value: On
30+
; Production Value: Off
31+
; http://php.net/display-errors
232
display_errors=Off
33+
34+
; Besides displaying errors, PHP can also log errors to locations such as a
35+
; server-specific log, STDERR, or a location specified by the error_log
36+
; directive found below. While errors should not be displayed on productions
37+
; servers they should still be monitored and logging is a great way to do that.
38+
; Default Value: Off
39+
; Development Value: On
40+
; Production Value: On
41+
; http://php.net/log-errors
342
log_errors=On
443

5-
opcache.enable=1
6-
opcache.enable_cli=1
44+
;;;;;;;;;;;;;;;;;;;
45+
; Resource Limits ;
46+
;;;;;;;;;;;;;;;;;;;
47+
48+
; Maximum execution time of each script, in seconds
49+
; http://php.net/max-execution-time
50+
; Note: This directive is hardcoded to 0 for the CLI SAPI
51+
max_execution_time=360
52+
53+
; Maximum amount of time each script may spend parsing request data. It's a good
54+
; idea to limit this time on productions servers in order to eliminate unexpectedly
55+
; long running scripts.
56+
; Note: This directive is hardcoded to -1 for the CLI SAPI
57+
; Default Value: -1 (Unlimited)
58+
; Development Value: 60 (60 seconds)
59+
; Production Value: 60 (60 seconds)
60+
; http://php.net/max-input-time
61+
max_input_time=360
762

863
; Maximum amount of memory a script may consume (128MB)
964
; http://php.net/memory-limit
1065
memory_limit = 768M
1166

67+
;;;;;;;;;;;;;;;;
68+
; File Uploads ;
69+
;;;;;;;;;;;;;;;;
70+
1271
; Maximum allowed size for uploaded files.
1372
; http://php.net/upload-max-filesize
14-
1573
upload_max_filesize = 20M
16-
; Sets max size of post data allowed.
17-
; http://php.net/post-max-size
1874

75+
;;;;;;;;;;;;;;;;;
76+
; Data Handling ;
77+
;;;;;;;;;;;;;;;;;
78+
79+
; Maximum size of POST data that PHP will accept.
80+
; Its value may be 0 to disable the limit. It is ignored if POST data reading
81+
; is disabled through enable_post_data_reading.
82+
; http://php.net/post-max-size
1983
post_max_size = 20M
20-
max_execution_time=360
21-
max_input_time=360
84+
85+
;;;;;;;;;;;;;;;;;;
86+
; Fopen wrappers ;
87+
;;;;;;;;;;;;;;;;;;
88+
89+
; Default timeout for socket based streams (seconds)
90+
; http://php.net/default-socket-timeout
2291
default_socket_timeout=3600
23-
request_terminate_timeout=600
92+
request_terminate_timeout=600
93+
94+
[opcache]
95+
; Determines if Zend OPCache is enabled
96+
opcache.enable=1
97+
98+
; Determines if Zend OPCache is enabled for the CLI version of PHP
99+
opcache.enable_cli=1
100+
101+
; The OPcache shared memory storage size.
102+
;opcache.memory_consumption=128
103+
104+
; The amount of memory for interned strings in Mbytes.
105+
;opcache.interned_strings_buffer=8
106+
107+
; The maximum number of keys (scripts) in the OPcache hash table.
108+
; Only numbers between 200 and 1000000 are allowed.
109+
;opcache.max_accelerated_files=10000

0 commit comments

Comments
 (0)