php_extra.ini 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [PHP]
  2. ; 性能提升
  3. auto_globals_jit = On
  4. ; 内存上限, https://php.net/memory-limit
  5. memory_limit = 128M
  6. ; 输出缓冲区大小
  7. output_buffering = 4096
  8. ; 是否开启隐式压缩支持, https://php.net/zlib.output-compression
  9. zlib.output_compression = Off
  10. zlib.output_compression_level = -1
  11. zend.exception_ignore_args = Off
  12. zend.exception_string_param_max_len = 15
  13. ; 是否暴露PHP信息
  14. expose_php = off
  15. ; 默认MIME类型, 建议不要改. https://php.net/default-mimetype
  16. ;default_mimetype = "text/html"
  17. ; 最大执行时长, 命令行模式下硬编码为0.
  18. max_execution_time = 30
  19. max_input_time = 60
  20. ; 错误, https://php.net/error-reporting
  21. error_reporting = E_ALL
  22. ; 向输出显示错误, Off, stderr/stdout https://php.net/display-errors
  23. display_errors = Off
  24. ; 输出错误信息到log日志, https://php.net/log-errors
  25. #log_errors = On
  26. error_log="/data/log/php_errors.log"
  27. ; 开启的全局变量,GET, POST, COOKIE, ENV and SERVER. https://php.net/variables-order
  28. variables_order = "GPCS"
  29. ; 开启$_POST访问,默认On. https://php.net/enable-post-data-reading
  30. enable_post_data_reading = Off
  31. ; $_POST接收数据的最大长度, https://php.net/post-max-size
  32. post_max_size = 8M
  33. ; 文件上传功能, 需要在nginx中配合设置. https://php.net/file-uploads
  34. file_uploads = Off
  35. upload_max_filesize = 120M
  36. max_file_uploads = 20
  37. [CLI Server]
  38. cli_server.color = On
  39. [opcache]
  40. #zend_extension=opcache
  41. #opcache.enable=0
  42. ;# 基于docker到宿主间隔了一层, 这里最好是每次都检测文件是否有变动
  43. opcache.revalidate_freq=0;
  44. ;# 关闭5.6下关于RAW_POST_DATA的警告
  45. always_populate_raw_post_data=-1;