From f273fec8976a21ad62b9504367330365c5442e21 Mon Sep 17 00:00:00 2001 From: navneet0693 Date: Tue, 14 Feb 2023 13:42:30 +0530 Subject: [PATCH] Update the php.ini values to match prod. --- ci/php.ini | 26 +++++++++++++++++++++----- dev/php.ini | 31 +++++++++++++++++++++---------- php.ini | 34 ++++++++++++++++++++-------------- 3 files changed, 62 insertions(+), 29 deletions(-) diff --git a/ci/php.ini b/ci/php.ini index ecab3c5..37d74b3 100644 --- a/ci/php.ini +++ b/ci/php.ini @@ -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 diff --git a/dev/php.ini b/dev/php.ini index 4094ab4..5b9f364 100644 --- a/dev/php.ini +++ b/dev/php.ini @@ -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 diff --git a/php.ini b/php.ini index 70f0265..f79481d 100644 --- a/php.ini +++ b/php.ini @@ -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