OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: banym on September 13, 2019, 09:33:24 AM

Title: What is the "correct" way to adjust the php max memory used by lighttp andp php?
Post by: banym on September 13, 2019, 09:33:24 AM
Hi,

some plugins request more memory usage on one of my boxes.
Is there a "correct" way to adjust the max memory value or what php.ini file would be the correct one?

If the value is adjusted is it a persistent change or will it be overritten with system updates?

Regards,

Dominik
Title: Re: What is the "correct" way to adjust the php max memory used by lighttp andp php?
Post by: franco on September 13, 2019, 12:24:52 PM
Hi Dominik,

System updates will overwrite it. If anything it should be discussed on GitHub why the limit needs to change (beyond the explanation "some plugins").

Since i386 goes away in 20.1 we have a good window of opportunity at the moment.


Cheers,
Franco
Title: Re: What is the "correct" way to adjust the php max memory used by lighttp andp php?
Post by: banym on September 13, 2019, 02:41:09 PM
Hi Franco,

it is related to https://github.com/opnsense/plugins/issues/1482

But first I want to some testing, what php.ini would be the correct one to change for testing?

Title: Re: What is the "correct" way to adjust the php max memory used by lighttp andp php?
Post by: franco on September 13, 2019, 03:45:42 PM
Hi Dominik ,

Here you go:

https://github.com/opnsense/core/blob/master/src/opnsense/service/templates/OPNsense/WebGui/php.ini#L9


Cheers,
Franco
Title: Re: What is the "correct" way to adjust the php max memory used by lighttp andp php?
Post by: franco on September 13, 2019, 03:46:54 PM
PS: I guess a bump to 512 MB is easily possible.