Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    PHP memory error

    Scheduled Pinned Locked Moved pfBlockerNG
    5 Posts 3 Posters 327 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kirshman
      last edited by kirshman

      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 528

      I'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.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @kirshman
        last edited by

        @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.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        S GertjanG 2 Replies Last reply Reply Quote 0
        • S
          SteveITS Galactic Empire @Gertjan
          last edited by SteveITS

          System > Advanced > Miscellaneous:
          8d8195ca-2f7d-469e-92f5-f7792444e677-image.png

          ...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.

          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
          Upvote 👍 helpful posts!

          1 Reply Last reply Reply Quote 1
          • GertjanG
            Gertjan @Gertjan
            last edited by

            @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 ...

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • K
              kirshman
              last edited by

              Thanks everyone. That did it. No more errors!!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.