Skip to content
This repository has been archived by the owner on Aug 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #123 from onedesign/feature/php-config
Browse files Browse the repository at this point in the history
Adds a file with common php config settings for Craft
  • Loading branch information
brianjhanson authored Mar 2, 2018
2 parents 8118af8 + 66ad350 commit 55bceff
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions generators/craft2/templates/php.overrides.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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, 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
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
19 changes: 19 additions & 0 deletions generators/craft3/templates/php.overrides.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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, 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
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

0 comments on commit 55bceff

Please sign in to comment.