add option to set php memory limit
This commit is contained in:
parent
131c67df21
commit
be5b2f4bae
2 changed files with 2 additions and 1 deletions
|
|
@ -55,6 +55,7 @@
|
||||||
phpinidefault:
|
phpinidefault:
|
||||||
post_max_size: 64M
|
post_max_size: 64M
|
||||||
upload_max_filesize: 64M
|
upload_max_filesize: 64M
|
||||||
|
memory_limit: 128M
|
||||||
- set_fact:
|
- set_fact:
|
||||||
phpini: "{{ phpinidefault|combine( {} if (nginx.php == True) else nginx.php.ini|d({}) ) }}"
|
phpini: "{{ phpinidefault|combine( {} if (nginx.php == True) else nginx.php.ini|d({}) ) }}"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -386,7 +386,7 @@ max_input_time = 60
|
||||||
|
|
||||||
; Maximum amount of memory a script may consume (128MB)
|
; Maximum amount of memory a script may consume (128MB)
|
||||||
; http://php.net/memory-limit
|
; http://php.net/memory-limit
|
||||||
memory_limit = 128M
|
memory_limit = {{ phpini.memory_limit }}
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
; Error handling and logging ;
|
; Error handling and logging ;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue