Wherever I change PHP version for the vhost a new config being created under /etc/php/php.x/pool.d directory with random port causing duplicate ports issue. Another issue is that I need to edit apache conf for the website and change: SetHandler proxy:fcgi://localhost:8042 to match php-fpm port for each vhost
My questions are:
Is there any script which checks for duplicate ports and fix both pool.d and apache for each port in all PHP versions?
Once the version PHP switched should the previous pool.d config be deleted?
If you go to System Settings ⇾ Server Templates: Edit Server Template / PHP Options page, check it all right and click safe. Does it change (fixes the issue) anything on your side? If it does, can you re-upload the updated config once again?