memcache vs mecached and php.ini

Recent php update give me error in server

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so’ (tried: /usr/local/lib/php/extensions/n
o-debug-non-zts-20210902/memcache.so (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so: cannot open shared object file: No such file or directory),
/usr/local/lib/php/extensions/no-debug-non-zts-20210902//usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so.so (/usr/local/lib/php/extensions/no-debug-
non-zts-20210902//usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line
0
After browse for while I found out new option to figure out which file related to the extension
php –ini 2>/devnull
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: /usr/local/lib/php.ini
Scan for additional .ini files in: /etc/centminmod/php.d
Additional .ini files parsed: /etc/centminmod/php.d/a_customphp.ini,
/etc/centminmod/php.d/curlcainfo.ini,
/etc/centminmod/php.d/geoip.ini,
/etc/centminmod/php.d/igbinary.ini,
/etc/centminmod/php.d/imagick.ini,
/etc/centminmod/php.d/mailparse.ini,
/etc/centminmod/php.d/mcrypt.ini,
/etc/centminmod/php.d/memcache.ini,
/etc/centminmod/php.d/memcached.ini,
/etc/centminmod/php.d/redis.ini,
/etc/centminmod/php.d/timezonedb.ini
I need to delete one of memcache ini file
rm /etc/centminmod/php.d/memcache.ini
rm: remove regular file β€˜/etc/centminmod/php.d/memcache.ini’? y
php -v
PHP 8.1.16 (cli) (built: Feb 17 2023 10:48:10) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.16, Copyright (c) Zend Technologies
solved