Skip to content

Commit

Permalink
apache/php: enable acpu cache/accelerator for php CLI
Browse files Browse the repository at this point in the history
- fixes 'allowed memory size exhausted' during nextcloud upgrades/occ execution
- nextcloud/server#25742
- nextcloud/server#25770
  • Loading branch information
nodiscc committed May 29, 2021
1 parent 944f91f commit 67499e7
Show file tree
Hide file tree
Showing 2 changed files with 3 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

0 comments on commit 67499e7

Please sign in to comment.