This repository has been archived by the owner on Aug 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from onedesign/feature/php-config
Adds a file with common php config settings for Craft
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |