Thanks for this great script, that really helps.
Unfortunatly it failed to start the php7.4-fpm.service on a fresh Debian 11 VM.
Any ideas?
php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2022-08-23 16:41:21 CEST; 4min 55s ago
Docs: man:php-fpm7.4(8)
Process: 623 ExecStart=/usr/sbin/php-fpm7.4 --nodaemonize --fpm-config /etc/php/7.4/fpm/php-fpm.conf (code=exited, status=78)
Process: 751 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.4/fpm/pool.d/www.conf 74 (code=exited, status=0/SUCCESS)
Main PID: 623 (code=exited, status=78)
CPU: 84ms
Aug 23 16:41:19 mail systemd[1]: Starting The PHP 7.4 FastCGI Process Manager...
Aug 23 16:41:21 mail php-fpm7.4[623]: [23-Aug-2022 16:41:21] ERROR: failed to open configuration file '/etc/php/7.4/fpm/pool.d/pool-grommunio-dav.conf': No such file or directory (2)
Aug 23 16:41:21 mail php-fpm7.4[623]: [23-Aug-2022 16:41:21] ERROR: Unable to include /etc/php/7.4/fpm/pool.d/pool-grommunio-dav.conf from /etc/php/7.4/fpm/php-fpm.conf at line 145
Aug 23 16:41:21 mail php-fpm7.4[623]: [23-Aug-2022 16:41:21] ERROR: failed to load configuration file '/etc/php/7.4/fpm/php-fpm.conf'
Aug 23 16:41:21 mail php-fpm7.4[623]: [23-Aug-2022 16:41:21] ERROR: FPM initialization failed
Aug 23 16:41:21 mail systemd[1]: php7.4-fpm.service: Main process exited, code=exited, status=78/CONFIG
Aug 23 16:41:21 mail systemd[1]: php7.4-fpm.service: Failed with result 'exit-code'.
Aug 23 16:41:21 mail systemd[1]: Failed to start The PHP 7.4 FastCGI Process Manager.