feat: default memory limit to 128M

This commit is contained in:
VC
2024-07-05 11:53:31 +02:00
parent 4b4b6dd7f1
commit bf485efbef
3 changed files with 5 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
--- ---
php_modules: "['opcache', 'mysql', 'mbstring', 'gd']" php_modules: "['opcache', 'mysql', 'mbstring', 'gd']"
php_memory_limit: "128M"

View File

@@ -13,8 +13,8 @@
- restart php-fpm - restart php-fpm
- name: configure php - name: configure php
copy: template:
src: ./files/php.ini src: php.ini.j2
dest: /etc/php/{{ php_version }}/fpm/php.ini dest: /etc/php/{{ php_version }}/fpm/php.ini
notify: notify:
- restart php-fpm - restart php-fpm

View File

@@ -403,7 +403,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 = {{ php_memory_limit }}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ; ; Error handling and logging ;