I'm using php 7.0.17 and I was wondering if anyone would let me know what the recommended configuration for the php.ini file was. I would like to see the complete recommended php.ini file with all settings. I'm using magento 2.1.6 and I have been given various information from different people but here is my current configuration:

max_execution_time = 18000
max_input_time = 300
memory_limit = 50000M
precision = 14
output_buffering = 4096
zlib.output_compression = On
zlib.output_compression_level = -1

Also following setting is necessary too.

always_populate_raw_post_data = -1

Also make sure both your CLI and Web php config files match.


A sample php.ini file is provided in the Magento 2 source. This file is a good guide however these setting should be adjusted for your particular codebase and environment.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.