PHP memory error
-
Hi. I recently installed pfblockernd-devel as a result of squid and squidgaurd being no longer as usable. After installing the software I started getting this error:
PHP Errors:
[17-Jul-2025 09:43:03 US/Central] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /usr/local/bin/kea2unbound on line 528I've tried changing the amount of php memory, but can't find where to do it to make the change stick. When i edit the php.ini file, it just changes back to 512 after a reboot. I'm still getting the error no matter what i do. We have a very small school that meets in our space, so we have to have full content filtering. I have the UT1 adult list selected, so I know that's a big memory user. Any help resolving this error would be fantastic. Thanks!
I'm running the 2.8.0 release with pfBlockerNG-devel 3.2.8. Our machine is a AMD Ryzen 3 3100 4-Core Processor with 32 gigs of mem.
-
@kirshman said in PHP memory error:
I have the UT1 adult list selected, so I know that's a big memory user.
On my 4100, when I select that list, is a guaranteed 'Out Of Memory'.
If you deselect that list; there are no issues, right ?@kirshman said in PHP memory error:
When i edit the php.ini file, it just changes back to 512 after a reboot
That the power of pfSense : it will create all 'ini and setting files for nearly all processes. So editing these files won't work. You have to edit the file that creates that php.ini file ^^
You have more memory to give to PHP, it might be worthwhile to raise the size.
I'll re post tomorrow, and show you what file to edit. -
System > Advanced > Miscellaneous:
...which seems to not be on that doc page, hmm. (sent feedback)
Edit: I only tested that list once. It takes over 1 GB to extract, so overran the RAM disk in use at the time. No idea how much memory it takes to use.
kea2unbound is relatively new, not sure how that's involved here other than making updates from Kea to unbound.
-
@Gertjan said in PHP memory error:
I'll re post tomorrow, and show you what file to edit.
Euh .... @SteveITS solved it ...
@SteveITS said in PHP memory error:
kea2unbound is relatively new, not sure how that's involved here other than making updates from Kea to unbound
kea2unbound was probably the last script loaded that made the memory PHP reserved memory overflow.
I don't think kea prepared a file to be communicated to unbound that weights hundreds of megabytes, as that would mean kea (the DHCP server) was communicating thousands of hosts, obtained by leases, to be registered inti the DNS ... -
Thanks everyone. That did it. No more errors!!