[IMPORTANT] ISPConfig does not backups

Discussion in 'General' started by DRL, Sep 26, 2017.

  1. DRL

    DRL New Member

    Good day,
    ISPConfig has stopped making backups on all my servers. In /var/log/ispconfig/cron.log shows the following error:

    PHP Warning: Declaration of db::query($sQuery = '') should be compatible with mysqli::query($query, $resultmode = NULL) in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 961
    PHP Warning: chmod(): Input/output error in /usr/local/ispconfig/server/lib/classes/cron.d/500-backup.inc.php on line 73

    I think ISPConfig is using the latest version of PHP installed on the server (PHP-7.2 RC) and that's why it gives error.

    What is the solution? Can you change the version of PHP that ISPConfig uses?

    Thank you.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig requires the PHP version that ships as default with the Linux distribution (Operating system). There is no released Linux distribution that uses PHP 7.2 yet, the latest PHP that ships with the most current supported Distributions like Ubuntu 17.04 or Debian 9 is PHP 7.0, so you must have installed a PHP version from a third party repo when you have PHP 7.2 and this now breaks your installation. You can use PHP 7.2 as additional PHP version on ISPConfig systems but not as main PHP. Change your setup so that it uses the default PHP of the system again as main PHP version.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    But there might be other reasons for your problem besides the unsupported PHP version. The message you posted is just a deprecated warning and not an error, so that's not the direct reason why the backups on your system fail.
     
  4. DRL

    DRL New Member

    Thank you very much for your answer, till.
    Effectively. I had not noticed the problem until it was updated to PHP 7.2.
    It works perfectly, the backups have returned to work!

    Solution: install PHP 5.6 and and select it as default with update-alternatives --set php /usr/bin/php5.6

    root@cisco:~# php -v
    PHP 7.2.0RC1 (cli) (built: Sep 2 2017 07:06:07) ( NTS )

    root@cisco:~# update-alternatives --set php /usr/bin/php5.6
    update-alternatives: using /usr/bin/php5.6 to provide /usr/bin/php (php) in manual mode

    root@cisco:~# php -v
    PHP 5.6.31-4+0~20170804100521.6+jessie~1.gbpea630b (cli)

    No error is displayed in the ISPConfig log now :)

    Regards
     
    till likes this.

Share This Page