I have a multiserver installation of ISPConfig, using nginx. When I installed the master server it has all php versions from scratch in panel. When I installed slave servers, only PHP7.4 was in the panel for these servers. So, to upgrade to 8.1, I created in PHP versions (system tab) an 8.1 version of PHP for each slave server, with identical parameters than thouse specified in 8.1 version of master server. Now when I select PHP 8.1 for a site, it still showing in /etc/nginx/sites-available/sitename.vhost: fastcgi_pass unix:/var/lib/php7.4-fpm/web14.sock; when it should (I think): fastcgi_pass unix:/var/lib/php8.1-fpm/web14.sock; If the site is a new one that never was using 7.4, it show 502 error, cause sock file cannot be found in /var/lib/php7.4-fpm If the site was using 7.4 before, it does not fail, cause there still being a sock file in 7.4 folder in /var/lib. I suspect I am missing something in all related to PHP vesions managing. Any help will be appreciated. Thanks a lot.
That's not the case, it should be /var/lib/php7.4-fpm/web14.sock. The number in the path is NOT the PHP version of the site. This has been explained many times in the forum. This is just the global socket folder for all PHP versions on your server. Do not look into the vhost file; you can not see the PHP version of a site there anyway. How did you add the additional PHP versopns? You probably entered something wrong in the additional PHP settings or there is an issue with the PHP binaries that prevent them from working.
Solved! php-8.1 packages were not installed on this server. No idea about why in other slave server there was. Thankis a lot