extra PHP 8.2 installed on server - frontend/rainloop now seems to be using this and get errors

  • I installed PHP 8.2 for one of my sites which required this.

    All other sites, stayed on php7.1

    I expected the frontend would stay on 7.1 also.

    Some time in the past few days my frontend management and rainloop etc are now running 8.2 (verified with a phpinfo page in the rainloop directory)- and there are errors due to this.

    Does a regular cron job or something push changes basec on the default php regularly? It seemed to work well and then after a few days this occurred, with no config changes to the frontend.

    Errors on frontend eg :

    Deprecated: Return type of Zend_Registry::offsetExists($index) should either be compatible with ArrayObject::offsetExists(mixed $key): bool

    Fatal error: Array and string offset access syntax with curly braces is no longer supported

    I've adjusted the default php to be php7.1 using update-alternatives

    All websites and other services seem to still be running fine, just the frontend and rainloop no longer working.

    Where is the php version set for the frontend ? I assumed it was here : /etc/imscp/php/php.data

    cat /etc/imscp/php/php.data | grep 'php'

    PHP_CONF_DIR_PATH = /etc/php/7.1

    PHP_PEAR_DIR = /usr/share/php

    PHP_CLI_BIN_PATH = /usr/bin/php7.1

    PHP_FCGI_BIN_PATH = /usr/bin/php-cgi7.1

    PHP_FPM_BIN_PATH = /usr/sbin/php-fpm7.1

    PHP_FPM_POOL_DIR_PATH = /etc/php/7.1/fpm/pool.d