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

    Is it possible to configure php-fpm to listen on localhost:9000 (IP:PORT) instead of socket in Pfsense?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    24 Posts 5 Posters 2.3k 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.
    • B
      Bablu Kare @Gertjan
      last edited by

      @gertjan I think, that is working fine for you because you are using that for the single machine.

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

        @bablu-kare said in Is it possible to configure php-fpm to listen on localhost:9000 (IP:PORT) instead of socket in Pfsense?:

        @gertjan I think, that is working fine for you because you are using that for the single machine.

        16 Gb mem - 'old' Pentium quad core ..... (you're right, it's a single machine) 50 users max (captive portal users and company employees) and : no squid.

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

        B 1 Reply Last reply Reply Quote 0
        • B
          Bablu Kare @Gertjan
          last edited by

          @gertjan Please suggest what and where should I check, because I've tried my level best to resolve this issue, but no luck.

          1 Reply Last reply Reply Quote 0
          • B
            Bablu Kare @Gertjan
            last edited by

            @gertjan What should I do to use it for 80+ users?

            Is there any commercial version of it?

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              16GB RAM should be OK unless the squid settings are set badly. You still haven't provided any details about what you're doing with squid specifically, or any other services on the firewall.

              If you're using DNS over TLS, for example, you could be hitting a memory leak in Unbound. Or squid could be eating all the RAM. You need to collect more information about the state of the system when it's failing.

              For example, connect over ssh and watch the output of top -aSH and see what is using the most resources.

              Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

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

                Added to what @jimp said : if you see one ore more of the "php-fpm" eating up all processor(s) time, or your memory, your "502" issue is explained.

                As said : to isolate the problem : ditch squid for the time being.
                If, after some time, - 2 days or so, everything stays normal, you know where to focus your search.

                Btw : I'm mentioning "php" here, but it could be anything. More details are needed to say something more precis.

                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
                • B
                  Bablu Kare @jimp
                  last edited by

                  @jimp I think, lack of resources not causing this problem.

                  Here is the detail which services are running:

                  1. Squid with LightSquid: just to monitor network traffic on HTTP/HTTPS only not for cache and filtering traffic.
                  2. DNS as resolver
                  3. Captive portal
                  4. DHCP server
                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    Without details, what you think is the cause does not matter. Find evidence.

                    Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • B
                      Bablu Kare
                      last edited by

                      I'll collect the details and come back with it.
                      Thanks for your time and suggestion!

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        You might try increasing the available php process in System > Advanced > Admin Access.
                        Set max processes to something higher, try 4 to start.
                        However is something is hanging the available php processes this may only delay the errors.

                        Steve

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