mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Merge pull request #1288 from holta/apache-high-php-limits
Ramp up upload_max_filesize & post_max_size to 500M (if apache_high_php_limits: True, for WordPress & Moodle)
This commit is contained in:
commit
2520b76632
6 changed files with 8 additions and 8 deletions
|
@ -2,5 +2,5 @@
|
||||||
apache_allow_sudo: True
|
apache_allow_sudo: True
|
||||||
|
|
||||||
# For schools that use WordPress and/or Moodle intensively. See iiab/iiab #1147
|
# For schools that use WordPress and/or Moodle intensively. See iiab/iiab #1147
|
||||||
# WARNING: Enabling this (might) cause excess use of RAM or other resources?
|
# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
|
||||||
apache_high_php_limits: False
|
apache_high_php_limits: False
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
#- { src: 'php.ini.j2', dest: '/etc/php.ini', mode: '0644' } # @jvonau suggests removing this in https://github.com/iiab/iiab/issues/1147
|
#- { src: 'php.ini.j2', dest: '/etc/php.ini', mode: '0644' } # @jvonau suggests removing this in https://github.com/iiab/iiab/issues/1147
|
||||||
|
|
||||||
# For schools that use WordPress and/or Moodle intensively. See iiab/iiab #1147
|
# For schools that use WordPress and/or Moodle intensively. See iiab/iiab #1147
|
||||||
# WARNING: Enabling this (might) cause excess use of RAM or other resources?
|
# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
|
||||||
- name: Enact high limits in /etc/php/{{ php_version }}/{{ apache_service }}/php.ini if using WordPress and/or Moodle intensively
|
- name: Enact high limits in /etc/php/{{ php_version }}/{{ apache_service }}/php.ini if using WordPress and/or Moodle intensively
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "/etc/php/{{ php_version }}/{{ apache_service }}/php.ini"
|
path: "/etc/php/{{ php_version }}/{{ apache_service }}/php.ini"
|
||||||
|
@ -70,8 +70,8 @@
|
||||||
line: "{{ item.line }}"
|
line: "{{ item.line }}"
|
||||||
when: apache_high_php_limits
|
when: apache_high_php_limits
|
||||||
with_items:
|
with_items:
|
||||||
- { regexp: '^upload_max_filesize', line: 'upload_max_filesize = 64M ; default is 2M' }
|
- { regexp: '^upload_max_filesize', line: 'upload_max_filesize = 500M ; default is 2M' }
|
||||||
- { regexp: '^post_max_size', line: 'post_max_size = 128M ; default is 8M' }
|
- { regexp: '^post_max_size', line: 'post_max_size = 500M ; default is 8M' }
|
||||||
- { regexp: '^memory_limit', line: 'memory_limit = 256M ; default is 128M' }
|
- { regexp: '^memory_limit', line: 'memory_limit = 256M ; default is 128M' }
|
||||||
- { regexp: '^max_execution_time', line: 'max_execution_time = 300 ; default is 30' }
|
- { regexp: '^max_execution_time', line: 'max_execution_time = 300 ; default is 30' }
|
||||||
- { regexp: '^max_input_time', line: 'max_input_time = 300 ; default is 60' }
|
- { regexp: '^max_input_time', line: 'max_input_time = 300 ; default is 60' }
|
||||||
|
|
|
@ -188,7 +188,7 @@ exFAT_enabled: True
|
||||||
# Make this False to disable http://box/common/services/power_off.php button:
|
# Make this False to disable http://box/common/services/power_off.php button:
|
||||||
apache_allow_sudo: True
|
apache_allow_sudo: True
|
||||||
# For schools that use WordPress and/or Moodle intensively, see iiab/iiab #1147
|
# For schools that use WordPress and/or Moodle intensively, see iiab/iiab #1147
|
||||||
# WARNING: Enabling this (might) cause excess use of RAM or other resources?
|
# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
|
||||||
apache_high_php_limits: False
|
apache_high_php_limits: False
|
||||||
# SEE ALSO VARIABLES NEAR TOP OF THIS FILE: default_language, language_priority
|
# SEE ALSO VARIABLES NEAR TOP OF THIS FILE: default_language, language_priority
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ openvpn_handle: ""
|
||||||
# Make this False to disable http://box/common/services/power_off.php button:
|
# Make this False to disable http://box/common/services/power_off.php button:
|
||||||
apache_allow_sudo: True
|
apache_allow_sudo: True
|
||||||
# For schools that use WordPress and/or Moodle intensively, see iiab/iiab #1147
|
# For schools that use WordPress and/or Moodle intensively, see iiab/iiab #1147
|
||||||
# WARNING: Enabling this (might) cause excess use of RAM or other resources?
|
# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
|
||||||
apache_high_php_limits: False
|
apache_high_php_limits: False
|
||||||
# SEE ALSO VARIABLES NEAR TOP OF THIS FILE: default_language, language_priority
|
# SEE ALSO VARIABLES NEAR TOP OF THIS FILE: default_language, language_priority
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ openvpn_handle: ""
|
||||||
# Make this False to disable http://box/common/services/power_off.php button:
|
# Make this False to disable http://box/common/services/power_off.php button:
|
||||||
apache_allow_sudo: True
|
apache_allow_sudo: True
|
||||||
# For schools that use WordPress and/or Moodle intensively, see iiab/iiab #1147
|
# For schools that use WordPress and/or Moodle intensively, see iiab/iiab #1147
|
||||||
# WARNING: Enabling this (might) cause excess use of RAM or other resources?
|
# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
|
||||||
apache_high_php_limits: False
|
apache_high_php_limits: False
|
||||||
# SEE ALSO VARIABLES NEAR TOP OF THIS FILE: default_language, language_priority
|
# SEE ALSO VARIABLES NEAR TOP OF THIS FILE: default_language, language_priority
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ openvpn_handle: ""
|
||||||
# Make this False to disable http://box/common/services/power_off.php button:
|
# Make this False to disable http://box/common/services/power_off.php button:
|
||||||
apache_allow_sudo: True
|
apache_allow_sudo: True
|
||||||
# For schools that use WordPress and/or Moodle intensively, see iiab/iiab #1147
|
# For schools that use WordPress and/or Moodle intensively, see iiab/iiab #1147
|
||||||
# WARNING: Enabling this (might) cause excess use of RAM or other resources?
|
# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
|
||||||
apache_high_php_limits: False
|
apache_high_php_limits: False
|
||||||
# SEE ALSO VARIABLES NEAR TOP OF THIS FILE: default_language, language_priority
|
# SEE ALSO VARIABLES NEAR TOP OF THIS FILE: default_language, language_priority
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue