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

    nginx php-fpm increase a timeout in new version

    Scheduled Pinned Locked Moved ACME
    6 Posts 2 Posters 507 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.
    • A
      Almas
      last edited by Almas

      I setup ACME, multiple domain with DNS verification. I got nginx php-fpm timeout and can not renew my certificate anymore.
      I remember that, in earlier versions I could set proxy_read_timeout and keepalive_timeout in
      /usr/local/etc/nginx/nginx.conf and max execution in php.ini and got success.

      However, latest versions I can not setup it. Can someone help me with this issue? How can I set this timeout?

      Here is the error log:

      Nov 26 12:19:52	nginx		2024/11/26 12:19:52 [error] 28830#100327: *1112 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 132.101.29.31, server: , request: "POST /acme/acme_certificates.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm.socket", host: "mysserverhost:port", referrer: "https://mysserverhost:port/acme/acme_certificates.php"
      
      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @Almas
        last edited by

        @Almas said in nginx php-fpm increase a timeout in new version:

        /usr/local/etc/nginx/nginx.conf and max execution in php.ini and got success.

        That nginx.conf is part of the 'FreeBSD' standard nginx setup, but not/never used in pfSense.

        The pfSense GUI nginx main configuration file is here /var/etc/nginx-webConfigurator.conf

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

        A 2 Replies Last reply Reply Quote 0
        • A
          Almas @Gertjan
          last edited by

          @Gertjan said in nginx php-fpm increase a timeout in new version:

          That

          I tried to edit /var/etc/nginx-webConfigurator.conf but it is reset after reboot. It seems this file is created automatically.
          Do you know about this?

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

            @Gertjan

            Thank you for pointing out.
            I found that "/etc/inc/system.inc" was used to generate the /var/etc/nginx-webConfigurator.conf

            It seems I resolved and passed my issue.

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

              @Almas said in nginx php-fpm increase a timeout in new version:

              I tried to edit /var/etc/nginx-webConfigurator.conf

              You can edit that file yourself the classic way.
              That is, you can, and you'll discover that your changes are 'gone' every soon afterwards.
              It's pfSense that creates and mains all the config file for every process, using the settings you can find in the GUI.

              If you want to edit or add things, look in this file /etc/inc/system.inc - around line 17xx : look for the function system_generate_nginx_config.
              That's where the nginx-webConfigurator.conf is created.

              edit, great, you've figured it out already πŸ‘

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

              A 1 Reply Last reply Reply Quote 0
              • A
                Almas @Gertjan
                last edited by

                @Gertjan
                Thank you very much 😊 πŸ‘

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