Increase memory in config.ini.php
Im currently haunted by errors like these:
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1098907648 bytes) in /opt/bitnami/matomo/core/Common.php on line 1151
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1098907648 bytes) in /opt/bitnami/matomo/core/Common.php on line 1151
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1098907648 bytes) in /opt/bitnami/matomo/core/Common.php on line 1151
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1098907648 bytes) in /opt/bitnami/matomo/core/Common.php on line 1151
[Mon May 09 07:36:43.426952 2022] [core:notice] [pid 1] AH00051: child pid 169 exit signal Segmentation fault (11), possible coredump in /opt/bitnami/apache
[Mon May 09 07:36:43.427278 2022] [core:notice] [pid 1] AH00051: child pid 212 exit signal Segmentation fault (11), possible coredump in /opt/bitnami/apache
[Mon May 09 07:36:43.437458 2022] [mpm_prefork:notice] [pid 1] AH00169: caught SIGTERM, shutting down
which is solved by increasing the memory limit like so:
$ echo "memory_limit = 512M" >> /bitnami/matomo/config/config.ini.php
it would be nice if we can have a config.ini.php
startup script, but bear in mind that matomo makes changes to this file as well, so it shouldn't be overwritten on each startup which makes it a more difficult problem.