Skip to content

Commit

Permalink
Update the php.ini values to match prod.
Browse files Browse the repository at this point in the history
  • Loading branch information
navneet0693 committed Feb 14, 2023
1 parent 01034ad commit f273fec
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 29 deletions.
26 changes: 21 additions & 5 deletions ci/php.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
[PHP]
; Prod settings -- see ../prod/php.ini
date.timezone = UTC
zend.assertions = 0
upload_max_filesize = 24M
post_max_size = 32M
file_uploads = On
display_errors: Off
display_startup_errors: Off
max_execution_time: 120
max_input_time: 900
max_input_vars: 10000
memory_limit: 256M
opcache.enable: 1
opcache.enable_cli: 1
opcache.interned_strings_buffer: 16
opcache.max_accelerated_files: 65407
opcache.max_file_size: 0
opcache.memory_consumption: 128
opcache.revalidate_freq: 0
opcache.validate_timestamps: Off
post_max_size: 100M
realpath_cache_size: 800K
realpath_cache_ttl: 86400
session.cookie_lifetime: 2000000
session.gc_maxlifetime: 2000000
upload_max_filesize: 100M


; CI settings
; TODO Change memory_limit to prod value.
memory_limit = 1024M
zend.assertions = 1
31 changes: 21 additions & 10 deletions dev/php.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
[PHP]
; Prod settings -- see ../prod/php.ini
; Prod settings
date.timezone = UTC
zend.assertions = 0
upload_max_filesize = 24M
post_max_size = 32M
file_uploads = On

; CI settings - see ../ci/php.ini
; TODO Change memory_limit to prod value.
memory_limit = 1024M
max_execution_time = 0
zend.assertions = 1
display_errors: Off
display_startup_errors: Off
max_execution_time: 120
max_input_time: 900
max_input_vars: 10000
memory_limit: 256M
opcache.enable_cli: 1
opcache.interned_strings_buffer: 16
opcache.max_accelerated_files: 65407
opcache.max_file_size: 0
opcache.memory_consumption: 128
opcache.revalidate_freq: 0
opcache.validate_timestamps: Off
post_max_size: 100M
realpath_cache_size: 800K
realpath_cache_ttl: 86400
session.cookie_lifetime: 2000000
session.gc_maxlifetime: 2000000
upload_max_filesize: 100M

; Dev settings
xdebug.max_nesting_level = 500
opcache.enable = 0
zend.assertions = 1
34 changes: 20 additions & 14 deletions php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,24 @@
; Prod settings
date.timezone = UTC
zend.assertions = 0
upload_max_filesize = 24M
post_max_size = 32M
file_uploads = On
memory_limit = 128M
opcache.max_accelerated_files = 40000
opcache.max_file_size = 0
opcache.memory_consumption = 128
opcache.revalidate_freq = 2
display_errors = Off
max_execution_time = 120
max_input_time = 900
max_input_vars = 10000
output_buffering = 4096
realpath_cache_size = 800K
realpath_cache_ttl = 86400
display_errors: Off
display_startup_errors: Off
max_execution_time: 120
max_input_time: 900
max_input_vars: 10000
memory_limit: 256M
opcache.enable: 1
opcache.enable_cli: 1
opcache.interned_strings_buffer: 16
opcache.max_accelerated_files: 65407
opcache.max_file_size: 0
opcache.memory_consumption: 128
opcache.revalidate_freq: 0
opcache.validate_timestamps: Off
post_max_size: 100M
realpath_cache_size: 800K
realpath_cache_ttl: 86400
session.cookie_lifetime: 2000000
session.gc_maxlifetime: 2000000
upload_max_filesize: 100M

0 comments on commit f273fec

Please sign in to comment.