/
๐Ÿ˜

PHP User Overrides

https://docs.apiscp.com/admin/PHP-FPM/#user-overrides
phpmemoryuploadoverrides
Table of contents
  • Increasing PHP memory
  • Increasing upload size

PHP-FPM uses .user.ini in each document root to set PHP configuration at runtime. Learn more here โ†—

Increasing PHP memory

To increase the memory limit, you can define a new limit as follows:

ini
memory_limit = 128M

โš ๏ธ Make sure cgroups allocated memory is equal or more than you set in the override.

โš ๏ธ This can only be applied to PHP CLI. Use policy maps to change PHP FPM's memory limit instead. Learn more here โ†—

Increasing upload size

To increase the upload size limit, you can raise the limit as follows:

ini
upload_max_filesize = 32M
post_max_size = 32M
logo
Notes and cheats for a better ApisCP administration experience.