apt install gcc make autoconf libc-dev pkg-config php-dev
pecl channel-update pecl.php.net
pecl install apcu
You should add “extension=apcu.so” to php.ini
/etc/php/8.2/fpm/conf.d/20-apcu.ini
or try:
echo "extension=apcu.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`