How do I change the default PHP memory limit

Noumad

Verified User
Joined
Nov 1, 2022
Messages
9
How do I change the default PHP memory limit and upload size server wide? I need to change both current accounts and accounts in the future
 
You can change the default php.ini file in:
/usr/local/phpXX/lib/php.ini
and the restart the according php version. If you have set php.ini to yes in custombuild, it might be overwritten on an update, so disable this.

Or you can create a custom .ini file in the php.conf.d directory for example:
/usr/local/phpXX/lib/php.conf.d/11-custom.ini

Then in that custom.ini file place your custom options there.
Als restart php-fpmXX afterwards.

Related section in the docs:
 
Back
Top