Differences
This shows you the differences between two versions of the page.
tech:linux:php_ini [2020/02/01 06:27] |
tech:linux:php_ini [2022/03/28 06:28] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Recommended php.ini Settings ====== | ||
+ | The default php.ini settings are quite narrow. Considering today's server's memory, CPU, storage, etc, the first thing in a default install is to improve upon these. None of these should affect existing application, especially if you are increasing the resources (which is the case here) | ||
+ | ^ Default Settings ^ New Settings ^ | ||
+ | | max_execution_time = 30 | max_execution_time = 60 | | ||
+ | | max_input_time = 60 | max_input_time = 90 | | ||
+ | | memory_limit = 128M | memory_limit = 256M | | ||
+ | | post_max_size = 8M | post_max_size = 32M | | ||
+ | | upload_max_filesize = 2M | upload_max_filesize = 32M | | ||
+ | | session.gc_maxlifetime = 1440 | session.gc_maxlifetime = 6000 | | ||
+ | | default_socket_timeout = 60 | default_socket_timeout = 120 | |