Php.ini memory limit keeps resetting back to 128M
I set a value of 250M for the memory_limit of PHP 8.1 using the MultiPHP INI Editor. This is the second time I've noticed that the value has reverted back to the default 128M without my knowledge. Presumably this is due to an update but it causes havoc with our various systems because scripts start timimg out due to lack of memory!
The page on the MultiPHP editor mention that "cPanel & WHM adjusts this setting at the time of install, based on system memory":
1 GB — 32M
2 - 4GB — 64M
Over 4 GB — 128M
I read this to mean that any newly installed PHP version will have these values applied, which is sensible. However, my PHP8.1 version was probably installed 2 years ago and I can't see why it keeps being changed. Other than turning updates off, does anyone know how to prevent this?
-
Hey there! I would not expect this value to be changed besides the initial installation value that you mention - we do not override custom configurations to this value.
Since that is the case, I also don't know how to prevent this as it's not expected behavior.
Could you create a ticket so this can be investigated?
0
Please sign in to leave a comment.
Comments
1 comment