• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 475 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 Nov 26, 2024, 5:02 AM Nov 26, 2024, 4:37 AM

    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"
    
    G 1 Reply Last reply Nov 26, 2024, 8:13 AM Reply Quote 0
    • G
      Gertjan @Almas
      last edited by Nov 26, 2024, 8:13 AM

      @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 Nov 26, 2024, 11:01 AM Reply Quote 0
      • A
        Almas @Gertjan
        last edited by Nov 26, 2024, 11:01 AM

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

        G 1 Reply Last reply Nov 26, 2024, 11:58 AM Reply Quote 0
        • A
          Almas @Gertjan
          last edited by Nov 26, 2024, 11:41 AM

          @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
          • G
            Gertjan @Almas
            last edited by Gertjan Nov 26, 2024, 11:59 AM Nov 26, 2024, 11:58 AM

            @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 Nov 26, 2024, 12:24 PM Reply Quote 0
            • A
              Almas @Gertjan
              last edited by Nov 26, 2024, 12:24 PM

              @Gertjan
              Thank you very much 😊 👍

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received