La commande php -v

lorsque je lance la commande php -v, j’ai des message d’erreurs comme ce çi:

Failed loading ext/opcache.so:  ext/opcache.so: cannot open shared object file: No such file or directory
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/mysqlnd.so' - ext/mysqlnd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/pdo.so' - ext/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/xml.so' - ext/xml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/calendar.so' - ext/calendar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/ctype.so' - ext/ctype.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/curl.so' - ext/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/dom.so' - ext/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/exif.so' - ext/exif.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/fileinfo.so' - ext/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/ftp.so' - ext/ftp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/gd.so' - ext/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/geoip.so' - ext/geoip.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/gettext.so' - ext/gettext.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/gmp.so' - ext/gmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/iconv.so' - ext/iconv.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/igbinary.so' - ext/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/intl.so' - ext/intl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/json.so' - ext/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/mbstring.so' - ext/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/mcrypt.so' - ext/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/msgpack.so' - ext/msgpack.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/mysqli.so' - ext/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/pdo_mysql.so' - ext/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/pdo_sqlite.so' - ext/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/phar.so' - ext/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/posix.so' - ext/posix.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/readline.so' - ext/readline.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/redis.so' - ext/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/shmop.so' - ext/shmop.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/simplexml.so' - ext/simplexml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/soap.so' - ext/soap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/sockets.so' - ext/sockets.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/sqlite3.so' - ext/sqlite3.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/sysvmsg.so' - ext/sysvmsg.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/sysvsem.so' - ext/sysvsem.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/sysvshm.so' - ext/sysvshm.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/tokenizer.so' - ext/tokenizer.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/wddx.so' - ext/wddx.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/xmlreader.so' - ext/xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/xmlrpc.so' - ext/xmlrpc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/xmlwriter.so' - ext/xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/xsl.so' - ext/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/zip.so' - ext/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext/memcached.so' - ext/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 7.1.33-4+0~20200123.30+debian10~1.gbpdc2095 (cli) (built: Jan 23 2020 14:15:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

sachant que les modules sont déja installés
je suis sous debian buster

Bonjour,
À tout hasard, tu lances la commande en root, quelque chose du genre :

su -
password ******
php -v

oui j’ai lancé la commande en mode root bien sur

En copiant la première ligne d’erreur :

dans un moteur de recherche, tu trouveras des informations.
Peut-être ici la réponse ?

Oui, mais est ce qu’ils sont bien au bon endroit où la conf de ton php va les chercher ?
Il faudrait savoir si c’est toi qui a fait la configuration des divers .ini de ton php, si la machine a été installée en buster, ou migrée depuis une stretch, etc:
la config des chemins de ces extensions n’est peut être pas correcte.

Je vois par exemple que le chemin de toutes les extentions est mis en relatif ext/xxx.so
Pour opcache.so, ça doit être défini par une instruction zend_extension=…opcache.so qui théoriquement doit être spécifié en chemin absolu.
Je ne sais pas comment s’articule tout ça ni dans quel .ini ça se trouve, mais il ça mériterait de vérifier dans la conf cette histoire de chemin relatif/chemin absolu.

C’est toujours le même problème de base :

Tant que tu t’obstineras à utiliser des dépôts exotiques qui fournissent PHP 7.1 au lieu d’utiliser les paquets officiels Debian avec PHP 7.3, tu accumuleras les problèmes.