I can not enable OPCache in PHP 5.6.30

-1

I'm using Ubuntu 16.04 and compiled PHP 5.6.30 using the --enable-opcache flag, even though it's not needed in this release.

In php.ini, I've already added the rows

zend_extension=caminho_do_opcache.so
opcache.enable=1

I have also tried to configure opcache.error_log in php.ini, but no messages have been logged in this file.

These and other options I tested did not enable the OP Cache, none of them displayed the Zend OPCache section in phpinfo() .

  • How can I enable it?
  • Is there a chance that it is enabled and does not appear in phpinfo() ?
  • Did I forget some step?
asked by anonymous 07.02.2017 / 12:50

1 answer

-1

I discovered that php was not reading the php.ini that I was altering, which is rather strange because there is no other php.ini in the whole system.

To resolve, I created a symbolic link in the directory specified in the% Configuration Constraint (php.ini) Path pointing to the php.ini I was changing, restarted php-fpm and now OPCache is enabled.

    
07.02.2017 / 22:09