OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: jorgevisentini on June 24, 2021, 09:54:26 PM

Title: PHP Fatal error
Post by: jorgevisentini on June 24, 2021, 09:54:26 PM
Hi all!

Is there any option to configure PHP parameters through the WEB interface or is there another way to make this adjustment?

I have the following error:
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 119541760 bytes)

But if I change the /usr/local/etc/php.ini file in the cli, it doesn't work because it is generated by configd.

Thank you all!!

Title: Re: PHP Fatal error
Post by: Fright on June 25, 2021, 06:57:59 PM
Hi
can try to change it in /usr/local/opnsense/service/templates/OPNsense/WebGui/php.ini
looks like @franco has already done it )
https://github.com/opnsense/core/commit/6d1b3ceaba90324afb9bb8a04a150250b4512c7b#diff-8ea9f70dc5eea4c345bfdd9fa60ebdb399dc163e1f832dbc2cad6d1c471315cc
Title: Re: PHP Fatal error
Post by: jorgevisentini on June 25, 2021, 08:30:54 PM
Oh thank you man.

It worked for me ;D