1

I'm having trouble to enable Zend OPCache in compiled PHP 5.6.30.

It was compiled using '--enable-opcache' although it's not necessary at that version.

I already added to php.ini:

zend_extension=path_to_opcache.so opcache.enable=1 

Also tried enabling opcache.error_log but didn't write anything to the specified file.

I've tried some others options, none of them showed "Zend OPCache" section at phpinfo();.

I'm using Ubuntu 16.04.

2
  • How do you know that it's not enabled? OpCache is quite transparent. Commented Feb 6, 2017 at 20:17
  • @Sammitch I know it should be shown in phpinfo like the picture in this question Commented Feb 7, 2017 at 11:15

1 Answer 1

0

It turns out that my php.ini was not where it should be. I created a symbolic link to the directory specified in phpinfo's Configuration File (php.ini) Path linking my php.ini, restarted php-fpm and now OPCache is enabled.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.