Hi all, I just partially migrated my server to a new one and I need to resync, but… Why partially, cause the migration tools doesn't transfer correctly the PHP settings, so I get some strange behaviour like : cat /etc/php/5.6/fpm/pool.d/web573.conf Code: [web573] listen = /var/lib/php7.4-fpm/web573.sock listen.owner = web573 listen.group = www-data listen.mode = 0660 For this I suppose, the best way is to resync the website. But the IPs do not point to this server and I am afraid of losing the certificates of all the sites. So my question, is there a way to only reconfigure the PHP version of all the website ? Thanks.
What's the problem with that content? Please note that version numbers in socket paths are not related to a specific PHP version, so a path like /var/lib/php7.4-fpm/web573.sock does not mean the site uses PHP 7.4, in fact it uses PHP 5.6 as the pool file is read by the PHP 6.5 FPM daemon. The socket directory for all PHP versions is the same, so no matter if a site uses PHP 5.6, 7.4 or 8.0, the path is always /var/lib/php7.4-fpm/ as that#s the system-wide socket directory.
The file you posted in your first post shows that it's on 5.6, so everything is perfectly fine. And now you been confirmed that it matches exactly the settings you have chosen in ISPConfig, so you double confirmed now that everything is fine and as it should be. The number 7.4 in the file you posted is absolutely no indication of the PHP version of the site. So don't look into the pool files as the paths used in there give you absolutely no information on a PHP version. But I've explained that many times already, so you should be able to find this info in the forums in many posts.
No, it's the system-wide PHP socket directory used by all PHP versions on the new system and it contains a number, yes, but this number is not related to a particular PHP version, so it's exactly as it should be on the new system and not related to the migration. Do not look into the pool files, you can't gather any useful information about PHP versions from there. What gives you the information about the PHP version is the location of the pool file (not the socket), so if the pool file is in the folder /etc/php/5.6/fpm/pool.d/ then this pool file is read by php5.6-fpm daemon and therefore it is PHP 5.6. If you want to verify the PHP version of a site, create a info.php file with: Code: <?php phpinfo(); in there and open that file in a browser and check the PHP version that it shows.