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

      @bablu-kare If commercial version resolves both the issues.

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

        @johnpoz What should I do to resolve 502 error, please suggest?

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

          Most likely cause is that you are running your system out of RAM. You have not provided enough information to speculate about how/why that is happening.

          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

            Just a ques : remove squid and your "502" are gone, right ?

            I'm running a plain vanilla pfSense 2.4.4, which means you and I have exactly the same software, and I never ever saw something that look like a 502.
            Btw : your settings and mine are probably different.

            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 @jimp
              last edited by

              @jimp System has 16 GB RAM, with I5 ( 4core) CPU.

              I think it's happening because of heavy load maybe, as I am using Pfsense for 80 Users.

              Pfsense works fine for 1-2 hour after restarting PHP-PFM and after that throw 502 error in the browser when users access any sites.

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

                I do remember something like this : squid is a mono core program. Better check this.

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