IT-Wissen/atom/atom-settings.md
2024-10-12 22:49:35 +02:00

19 lines
500 B
Markdown
Executable File

---
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;
```