Php - witch one ? 8.0 or 8.1

Hello ;

Nextcloud version : 24.0.4
Operating system and version: Debian 11.4
Apache or nginx version _: 2.4.54
PHP version (eg, 7.4): supposedly 8.1.9
Bare Metal server

The issue you are facing:

When in ssh command mode, a php -v give me the following output:

 php -v
PHP 8.1.9 (cli) (built: Aug 15 2022 09:47:52) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.9, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.9, Copyright (c), by Zend Technologies

… as it is supposed to be !

In nextcloud GUI, under /index.php/settings/admin/serverinfo i get:
Php Version: 8.0.22

I am confused…

Nextcloud uses to different PHP components, a WEB and a CLI component. You should make sure that you use the same PHP version for both components. The PHP-WEB component is loaded with the web server, depending on the module you’ve installed, the PHP-CLI component is the one you are using when execution the php command on the line. Please keep in mind that different configuration files exist for both components :wink: