504 Gateway Time-out

Discussion in 'ISPConfig 3 Priority Support' started by concept21, Mar 14, 2022.

  1. concept21

    concept21 Active Member

    Hello,
    Today, I access my own website and it cannot be connected! It shows error message:
    504 Gateway Time-out
    nginx/1.18.0 (Ubuntu)

    How do I correct it? :(
    My system is Ubuntu 20.04, Nginx 1.18, ISPConfig 3.2.7.
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Check the error.log for that site to find the error
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Try restarting php-fpm daemon (the one that runs the PHP version that the site is using, e.g. php7.4-fpm or whatever version you use).
     
    concept21 likes this.
  4. concept21

    concept21 Active Member

    Yes, it works but rebooting my OS does not work.

    Could you explain? :eek:
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Might be that you did not configure the php-fpm daemon to automatically start when the server is booting.
     
  6. concept21

    concept21 Active Member

    I did!
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Then you might want to check the Syslog to find out why systemd is not starting it.
     
  8. concept21

    concept21 Active Member

  9. concept21

    concept21 Active Member

    I find warning in file /var/log/php7.4-fpm.log
    Where is max_children setting?
     
  10. concept21

    concept21 Active Member

  11. concept21

    concept21 Active Member

    I see!
    The ISPConfig default setting for each web's php-fpm memory is not enough for heavy php framework like Laravel, wordpress, etc.

    Perhaps, deveopers can provide an option in ISPConfig to tweak memory usage.
    For now, use the above calculator to tune individual web site. :rolleyes:
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig has no default settings for memory limits, it uses the limits of the Linux distribution. What you refer to as ISPConfig is in fact Ubuntu.

    This option exists for many years, you can find it on the options tab of the website on any ISPConfig system. The field is named "Custom php.ini settings".
     
    concept21 likes this.
  13. concept21

    concept21 Active Member

    Yes, I've found them on admin portal under | site | options |.
    There are multiple entries about php-fpm memory usage! Thanks! :D
     

Share This Page