I read the tutorial, some things are good but you can throw the PHP-FPM part in the trash:
With php it actually makes a difference in which order the packages are installed so that no unnecessary php SAPIs are installed. In the description the packages are neatly sorted alphabetically but that is wrong. You should always install php8.2-cli first (to stay with version 8.2 in my example), otherwise SAPIs like php8.2-phpdbg are installed, which are absolutely superfluous. Then php-fpm packages are installed there, not only for 8.2 but also for 8.1 and 8.3.
this appendix is completely superfluous:
...
php-fpm- \
php8.1-fpm- \
php8.3-fpm- \
php-mysqli-
Apart from the fact that it is possible, I don’t understand the purpose of an fpm pool called “Nextcloud”, other than to give the tutorial a sheen of “omniscience”. In reality, it is extremely counterproductive as it makes maintenance and updates more difficult. The php-updater script can easily transfer this type of pool from one version to the next, but it is still completely unnecessary if Nextcloud is the only application using fpm.
This tutorial says’
When installing PHP-FPM, a default pool config file is always created below “/etc/php/8.2/fpm/pool.d/www.conf”. This file can be removed
but many people don’t do that and then sockets are created that bind all the resources defined in this pool file but they are NEVER accessed.
This applies even if this pool is deleted as suggested above, but the pools for the unnecessarily installed php versions 8.1 and 8.3 remain active and place unnecessary strain on the server.
Meanwhile 24.04 is fully supported.
Surý is the maintainer of the Debian/Ubuntu packages for php, so “Debian PHP Maintainers” and Ondřej Surý are identical in that sense. So Ondřej Surý is not just some admin who built a few packages for some obscure period of time (as is unfortunately so often the case with ppa repositories) but rather THE source for php packages on Debian and Ubuntu Server. Surý, with due respect, is not an “external php source” and the Surý-Repo packages are much better suited for use in a server environment.
I judge this not only as an opinion, but from my deep knowledge of the packages and the structure of the internal dependencies from decades of working with Ondřey’s work
Much and good luck,
ernolf