-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp.ini
54 lines (44 loc) · 1.91 KB
/
php.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
; Set defaults that should be enough for most normal use.
memory_limit=1256M
max_execution_time=990
; Set timezone, uses UTC by default to make sure data is stored in universial time.
; Adjust your existing data if you have any if you change this, and also make sure it's configured for the os:
; RUN echo $TIMEZONE > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
date.timezone="Europe/Paris"
; Some tweaks to improve performance
realpath_cache_size=4096K
realpath_cache_ttl=600
; Tweak opcache to your own needs, further reading:
; https://secure.php.net/manual/en/opcache.installation.php
; https://tideways.io/profiler/blog/fine-tune-your-opcache-configuration-to-avoid-caching-suprises
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=20000
opcache.max_wasted_percentage=10
; Might make sense for some use cases (however not for dev, and validate_timestamps=0 would be better for prod)
;opcache.revalidate_freq=60
; Un comment (disable) for apps that don't swap cwd (like eZ Publish 5.x / Legacy bridge does)
;opcache.use_cwd=0
; Should only be used for real prod (e.g. when code is mounted to a container read only)
; Implies no cache systems caching to php files and changing the file over the container lifecycle
;opcache.validate_timestamps=0
;opcache.enable_file_override=0
; SESSION
; Use igbinary for session serialization
;session.serialize_handler=igbinary
session.auto_start = 0
; Don't show php version to the world
expose_php = Off
session.auto_start = 0 ;demandé par symfony
post_max_size = 1250M
upload_max_filesize = 1250M
;optimisation pour symfony
opcache.memory_consumption=256
; maximum number of files that can be stored in the cache
opcache.max_accelerated_files=20000
; maximum memory allocated to store the results
realpath_cache_size=4096K
; save the results for 10 minutes (600 seconds)
realpath_cache_ttl=600