I installed php-apcu with apt-get install on PHP7.2-apache-stretch but not able to enable it. The apcu.so and apcu.ini files are created during installation . Service Apache is also restarted and the content of apcu.ini is also good but php -m is not showing apcu in the list. Had also tried phpenmod but still it doesn't seem to work. However I am not getting any error during installation . The problem seems to be related to image because i had also tried to install apcu in the same way on fresh Debian image and it's working.
Any ideas please?
Install PHP7.2-dev via apt install PHP7.2-dev
and thereafter run pecl install apcu
and add the extension to the php.ini.