Resync - some information / maybe closed - it's resolved

Discussion in 'Installation/Configuration' started by stef157, Jun 15, 2022.

  1. stef157

    stef157 Member

    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.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  3. stef157

    stef157 Member

    When I check the website, it should be on 5.6 and not 7.4.
     

    Attached Files:

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
    stef157 likes this.
  5. stef157

    stef157 Member

    Ok super, I think it was an artifact from the migration.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
    stef157 likes this.

Share This Page