Apcu is not enabled when installed with apt-get on PHP7.2-apache stretch image

DepGr picture DepGr · Dec 13, 2017 · Viewed 8.5k times · Source

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?

Answer

Aviator picture Aviator · Dec 27, 2017

Install PHP7.2-dev via apt install PHP7.2-dev and thereafter run pecl install apcu and add the extension to the php.ini.