mayTermux/lampTermux

php8 opcache inactive

seniskenis opened this issue · 0 comments

Hi, How to enable opcache in php?
I tried to create php.ini in lib folder with contents:

[opcache]
opcache.enable = 1
zend_extension=opcache.so

but no luck...

error log:
Failed loading /data/data/com.termux/files/usr/lib/php/opcache.so: dlopen failed: cannot locate symbol "zend_signal_globals" referenced by "/data/data/com.termux/files/usr/lib/php/opcache.so"...

on php cli works fine:
php -i | grep opcache
opcache.enable => On => On