OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • What is the "correct" way to adjust the php max memory used by lighttp andp php?
« previous next »
  • Print
Pages: [1]

Author Topic: What is the "correct" way to adjust the php max memory used by lighttp andp php?  (Read 2376 times)

banym

  • Sr. Member
  • ****
  • Posts: 468
  • Karma: 31
  • Free Human Being, FreeBSD, Linux and Mac nerd
    • View Profile
    • Banym
What is the "correct" way to adjust the php max memory used by lighttp andp php?
« 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
Logged
Twitter: banym
Mastodon: banym@bsd.network
Blog: https://www.banym.de

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17712
  • Karma: 1618
    • View Profile
Re: What is the "correct" way to adjust the php max memory used by lighttp andp php?
« Reply #1 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
Logged

banym

  • Sr. Member
  • ****
  • Posts: 468
  • Karma: 31
  • Free Human Being, FreeBSD, Linux and Mac nerd
    • View Profile
    • Banym
Re: What is the "correct" way to adjust the php max memory used by lighttp andp php?
« Reply #2 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?

Logged
Twitter: banym
Mastodon: banym@bsd.network
Blog: https://www.banym.de

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17712
  • Karma: 1618
    • View Profile
Re: What is the "correct" way to adjust the php max memory used by lighttp andp php?
« Reply #3 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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17712
  • Karma: 1618
    • View Profile
Re: What is the "correct" way to adjust the php max memory used by lighttp andp php?
« Reply #4 on: September 13, 2019, 03:46:54 pm »
PS: I guess a bump to 512 MB is easily possible.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • What is the "correct" way to adjust the php max memory used by lighttp andp php?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2