This commit is contained in:
Roger Rutishauser 2024-10-12 22:44:17 +02:00
parent 83228b0bb9
commit 6b096a1294
2 changed files with 22 additions and 0 deletions

View File

@ -2,6 +2,11 @@
gitea: none gitea: none
include_toc: true include_toc: true
--- ---
[PHP Settings](atom-settings.md)
---
# AtoM CLI # AtoM CLI
https://www.accesstomemory.org/en/docs/2.8/admin-manual/maintenance/cli-tools/#maintenance-cli-tools https://www.accesstomemory.org/en/docs/2.8/admin-manual/maintenance/cli-tools/#maintenance-cli-tools

17
atom/atom-settings.md Executable file
View File

@ -0,0 +1,17 @@
---
gitea: none
include_toc: true
---
# AtoM Settings
## PHP Settings
To increase memory_limit for specific part in code:
- In `/etc/opt/remi/php72/php-fpm.d/atom.conf` change `php_admin_value[memory_limit] = 2048M` to `php_value[memory_limit] = 2048M`, so that It can be overridden
- somewhere in the code, for example in a plugin, get and set it with:
```
echo ini_get('memory_limit');
ini_set('memory_limit', '4096M');
echo ini_get('memory_limit');
exit;
```