Skip to content

Commit

Permalink
nextcloud: fixes 'allowed memory size exhausted' during nextcloud upg…
Browse files Browse the repository at this point in the history
…rades/occ execution:

- enable acpu cache/accelerator for php CLI
- disable accessibility app
- nextcloud/server#25742
- nextcloud/server#25770
  • Loading branch information
nodiscc committed Jun 4, 2021
1 parent c4e8791 commit f7eb67d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/apache/tasks/apache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
- { src: 'etc_apache2_conf-available_mod-md.conf.j2', dest: '/etc/apache2/conf-available/mod-md.conf' }
- { src: 'etc_apache2_ports.conf.j2', dest: '/etc/apache2/ports.conf' }
- { src: 'etc_php_7.3_fpm_pool.d_www.conf.j2', dest: '/etc/php/7.3/fpm/pool.d/www.conf' }
- { src: 'etc_php_7.3_cli_conf.d_20-apcu.ini.j2', dest: 'etc_php_7.3_cli_conf.d_20-apcu.ini' }
notify:
- reload apache
- restart php-fpm
Expand Down
2 changes: 2 additions & 0 deletions roles/apache/templates/etc_php_7.3_cli_conf.d_20-apcu.ini.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
extension=apcu.so
apc.enable_cli=1
1 change: 1 addition & 0 deletions roles/nextcloud/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ nextcloud_allow_tls12: true
# state: enable/disable
# app: nextcloud app name
nextcloud_apps:
- { state: "disable", app: "accessibility" }
- { state: "disable", app: "encryption" }
- { state: "disable", app: "files_antivirus" }
- { state: "disable", app: "files_versions" }
Expand Down

0 comments on commit f7eb67d

Please sign in to comment.