OPcache information not showing in phpinfo
I've got OPcache installed and PHP-FPM enabled for my domain. However when I viewed the phpinfo() details, "Zend OPcache" section is completely missing from the details. So I'm not able to see whether OPcache is even working well. I was expecting to see the Zend OPcache section something like below (this is what I see in phpinfo on another host).
i.imgur.com/8vnYdit.png
When I tried php -m command, I could see "Zend OPcache" listed under [PHP Modules] and [Zend Modules].
In phpinfo details, all I could see was this:
i.imgur.com/1jRrZr9.png
Is there a way to enable Zend OPcache section for phpinfo?
-
Hello @bluecup, I couldn't reproduce this in a test environment. Information about the Zend OPcache PHP extension appears in the PHPINFO file for an account with PHP-FPM enabled. Can you run the following command and let us know the output? rpm -qa|grep opcache
Also, what version of PHP is utilized by the account you are testing this on? Thank you.0 -
rpm -qa|grep opcache
That didn't return anything.Also, what version of PHP is utilized by the account you are testing this on?
PHP 7.0.300 -
Hello @bluecup, The lack of output from the rpm -qa|grep opcache command suggests the OPcache extension for PHP is not installed, or that you are using EasyApache 3. Can you verify if EasyApache 3 is installed on this system, and if so, let us know if there's anything in-particular that's preventing you from upgrading to EasyApache 4? If you're already using EasyApache 4, then you can install the OPcache extension for PHP 7.0 using the following command: yum install ea-php70-php-opcache
Thank you.0 -
Can you verify if EasyApache 3 is installed on this system, and if so, let us know if there's anything in-particular that's preventing you from upgrading to EasyApache 4?
EasyApache 4 was installed on the system.yum install ea-php70-php-opcache
This worked. Thanks!0 -
Hello @bluecup, I'm glad to see that worked. I've marked this thread as solved. Thanks! 0
Please sign in to leave a comment.
Comments
5 comments