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.
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).
Might be that you did not configure the php-fpm daemon to automatically start when the server is booting.
I've found this article. I hope it can help someone who faces this situation too. This time I may be lucky and it is not necessary to me: https://www.websitevidya.com/fix-504-gateway-timeout-nginx-error/
I've found these php fpm caculators: https://chrismoore.ca/2018/10/finding-the-correct-pm-max-children-settings-for-php-fpm/ https://spot13.com/pmcalculator/
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.
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".
Yes, I've found them on admin portal under | site | options |. There are multiple entries about php-fpm memory usage! Thanks!