database backups with ISPConfig 3.2.8p1 and debian 8.11

Discussion in 'ISPConfig 3 Priority Support' started by pinkfeet, May 17, 2022.

  1. pinkfeet

    pinkfeet Member HowtoForge Supporter

    Hello,
    i'm see a syntax error when launching db backups after doing a update to ISPConfig 3.2.8p1:
    Code:
    root@db2:~# php /usr/local/ispconfig/server/backup-now.php --id=2203 --type=mysql
    Making backup of website id=2203, type=mysql, please wait...
    PHP Parse error:  syntax error, unexpected '(' in /usr/local/ispconfig/server/lib/classes/backup.inc.php on line 1083
    root@db2:~# php -v
    PHP 5.6.40-0+deb8u12 (cli) (built: Jun 28 2020 09:37:30)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
        with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
        with XCache Optimizer v3.2.0, Copyright (c) 2005-2014, by mOo
        with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo
        with XCache Coverager v3.2.0, Copyright (c) 2005-2014, by mOo
    root@db2:~# cat /etc/debian_version
    8.11
    
    Is it possible PHP version doesn't support the used syntax of the new backup.inc.php file ?
    Thanks a lot guys
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    I believe that's an unsupported Debian version, upgrade to 11.
     
    Th0m likes this.
  3. pinkfeet

    pinkfeet Member HowtoForge Supporter

    But it works perfectly in 3.2.7p1, is it possible Debian 8.11 has been unsupported since 3.2.8p1 ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Each version has release notes which show the supported OS versions, e.g.:
    https://www.ispconfig.org/blog/ispconfig-3-2-8p1-released/
    But nonetheless, not supporting PHP 5.6 was not intended as it is needed for centOS 7 as well and we will see how we can fix that
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Btw. Do you have additional PHP versions PHP 7.0 - 7.4 installed? if yes, it might work to temporarily change the cli and CGI PHP version to one of those in debian. Please note that we always recommend keeping the default version, but in this special situation, it might be a viable workaround if you can't update Debian to at least 9.
     
  6. pinkfeet

    pinkfeet Member HowtoForge Supporter

    Ok, usually i use additionals PHP versions with FPM, from source or from dpkg. Thanks Till, i'm going to try that.
     
  7. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    And be sure to get updating that server on your list, even long term support for Debian 8 ended 2 years ago, there are many known (and actively exploited) vulnerabilities in your system.
     
    Th0m likes this.

Share This Page