From 12960c96b53f93c9836439be34c8bb8a020f9ac6 Mon Sep 17 00:00:00 2001 From: mkornatz Date: Thu, 1 Mar 2018 23:29:25 -0500 Subject: [PATCH 1/2] Adds a file with common php config settings for Craft --- generators/craft2/templates/php.overrides.ini | 17 +++++++++++++++++ generators/craft3/templates/php.overrides.ini | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 generators/craft2/templates/php.overrides.ini create mode 100644 generators/craft3/templates/php.overrides.ini diff --git a/generators/craft2/templates/php.overrides.ini b/generators/craft2/templates/php.overrides.ini new file mode 100644 index 0000000..90f8930 --- /dev/null +++ b/generators/craft2/templates/php.overrides.ini @@ -0,0 +1,17 @@ +# This file contains common php settings that need to be considered for Craft installs. + +# Craft tends to use a lot of memory when it comes to image processing. +# For sites with large images or a lot of transforms, this should be +# in the range of 300M - 500M. Default is 256M +memory_limit = 256M + +# This is the max size of any POST request +post_max_size = 10M + +# This is the max size of any asset that will be uploaded through +# the Craft Control Panel +upload_max_filesize = 10M + +# Sometimes Craft Entries can get pretty big and have a lot of fields +# submitted in one POST. Default is 1000 fields. +max_input_vars = 2500 diff --git a/generators/craft3/templates/php.overrides.ini b/generators/craft3/templates/php.overrides.ini new file mode 100644 index 0000000..90f8930 --- /dev/null +++ b/generators/craft3/templates/php.overrides.ini @@ -0,0 +1,17 @@ +# This file contains common php settings that need to be considered for Craft installs. + +# Craft tends to use a lot of memory when it comes to image processing. +# For sites with large images or a lot of transforms, this should be +# in the range of 300M - 500M. Default is 256M +memory_limit = 256M + +# This is the max size of any POST request +post_max_size = 10M + +# This is the max size of any asset that will be uploaded through +# the Craft Control Panel +upload_max_filesize = 10M + +# Sometimes Craft Entries can get pretty big and have a lot of fields +# submitted in one POST. Default is 1000 fields. +max_input_vars = 2500 From 66ad3509a2e3692ce80e45ca774632eb2473ea16 Mon Sep 17 00:00:00 2001 From: mkornatz Date: Thu, 1 Mar 2018 23:36:08 -0500 Subject: [PATCH 2/2] Clears up some comments --- generators/craft2/templates/php.overrides.ini | 10 ++++++---- generators/craft3/templates/php.overrides.ini | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/generators/craft2/templates/php.overrides.ini b/generators/craft2/templates/php.overrides.ini index 90f8930..40f7c46 100644 --- a/generators/craft2/templates/php.overrides.ini +++ b/generators/craft2/templates/php.overrides.ini @@ -1,8 +1,10 @@ -# This file contains common php settings that need to be considered for Craft installs. +# This file contains php settings that should be considered for Craft 2 installs. +# You will generally need to copy this file to /etc/php.d/craft.ini or update settings directly +# in /etc/php.ini. -# Craft tends to use a lot of memory when it comes to image processing. -# For sites with large images or a lot of transforms, this should be -# in the range of 300M - 500M. Default is 256M +# Craft tends to use a lot of memory when it comes to image processing, multiple languages, +# lots of complex Matrix fields, etc. For sites that are "heavier" in this regard, +# this should be in the range of 384M - 512M. memory_limit = 256M # This is the max size of any POST request diff --git a/generators/craft3/templates/php.overrides.ini b/generators/craft3/templates/php.overrides.ini index 90f8930..78fc5f9 100644 --- a/generators/craft3/templates/php.overrides.ini +++ b/generators/craft3/templates/php.overrides.ini @@ -1,8 +1,10 @@ -# This file contains common php settings that need to be considered for Craft installs. +# This file contains php settings that should be considered for Craft 3 installs. +# You will generally need to copy this file to /etc/php.d/craft.ini or update settings directly +# in /etc/php.ini. -# Craft tends to use a lot of memory when it comes to image processing. -# For sites with large images or a lot of transforms, this should be -# in the range of 300M - 500M. Default is 256M +# Craft tends to use a lot of memory when it comes to image processing, multiple languages, +# lots of complex Matrix fields, etc. For sites that are "heavier" in this regard, +# this should be in the range of 384M - 512M. memory_limit = 256M # This is the max size of any POST request