Errors in Server Check

Discussion in 'ISPConfig 3 Priority Support' started by muekno, Oct 10, 2023.

  1. muekno

    muekno Active Member HowtoForge Supporter

    On an other Server soon to bee updated fron Debian 10 to Debian 11, by prechecking all requirements I get following errors
    <CODE>
    ##### VERSION CHECK #####

    [INFO] php (cli) version is 7.3.31-1~deb10u5
    [INFO] php-cgi (used for cgi php in default vhost!) is version 5.6.40
    [WARN] You are using an outdated php version.
    </CODE>

    The server has just an empty not used website configured and is only used as mail relay and Spam Filter to the internal Mail System.
    The entries under system ... php version are made correct pointing to 7.3
    <CODE>
    php -v
    PHP 7.3.31-1~deb10u5 (cli) (built: Sep 4 2023 21:49:25) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.3.31, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.31-1~deb10u5, Copyright (c) 1999-2018, by Zend Technologies
    </CODE>
    Need information how ro correct the problem, not to run in problems while upgrading

    Kind Regards
    Rainer
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    There are no errors in the test script output you posted, there are just warnings. You can set the php version to 7.3 for php-cgi on Debian like this:

    update-alternatives --config php-cgi
     
  3. muekno

    muekno Active Member HowtoForge Supporter

    I still think there is something wrong, by the this is an ISPConfig single server, with latest Debian updates and ISPConfig version 3.2.11.

    Code:
    php# update-alternatives --config php-cgi
    There is only one alternative in link group php-cgi (providing /usr/bin/php-cgi): /usr/bin/php5-cgi
    Nothing to configure.
    php5 can not be correct
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    PHP comes in several falvors like cli, fpm and CGI. Maybe you do not have php7.3-cgi package installed?

    try:

    apt install php7.3-cgi
     
    muekno likes this.
  5. muekno

    muekno Active Member HowtoForge Supporter

    So long so fine, but still problemd with php fpm, I reinstalled with
    <CODE>
    apt install php7.3-fpm
    </CODE>
    get a already the newest version but
    <CODE>
    ll /var/lib/php7.3-fpm
    ls: cannot access '/var/lib/php7.3-fpm': No such file or directory
    </CODE>
    The other relevant directorys exists

    Kind Regards
    Rainer
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    This command does not reinstalls a package, it just installs it if not present or updates it. To reinstall a package, you use:

    apt install --reinstall php7.3-fpm

    This is perfectly fine and this directory does not has to exist. Especially if this system as originally installed with a different PHP version, and your first post suggests it was installed with php 5, then this directory should not exist as the system wide PHP socket directory is named after the PHP version that the system was originally installed om, it does not change its name just because you update PHP and its name should not be manually changed either. So its perfectly fine if this directory does not exist and no indication for any problem with PHP 7.3 or your system.
     
    muekno likes this.
  7. muekno

    muekno Active Member HowtoForge Supporter

    So I should set system...PHP Settings PHP-FPM socket directory back to /var/lib/php5-fpm ?

    Rainer
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Either you set it back or you must create that directory manually, but existing sites will keep using the /var/lib/php5-fpm directory anyway until you change any site setting.
     
    muekno likes this.

Share This Page