LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   PHP 5.6 with opcache (https://www.linuxquestions.org/questions/linux-software-2/php-5-6-with-opcache-4175588254/)

vwtech 08-29-2016 12:48 PM

PHP 5.6 with opcache
 
I complied php 5.6.25 and my info pages works but doesn't display "Zend OPcache" options as it did with 5.5.X.
Is "Zend OPcache" just not an option anymore in 5.6.X ?

bathory 08-30-2016 12:40 AM

Quote:

Originally Posted by vwtech (Post 5597855)
I complied php 5.6.25 and my info pages works but doesn't display "Zend OPcache" options as it did with 5.5.X.
Is "Zend OPcache" just not an option anymore in 5.6.X ?

First of all, I guess you have used "'--enable-opcache" in the ./configure script before compiling php, in order to add opcache support in php.

Then you should use the following in php.ini:
Code:

opcache.enable=1
zend_extension=/path/to/opcache.so

Regards

vwtech 08-30-2016 09:31 AM

I had the legacy directory instead of the current one in the "zend_extension=" directive thats in php.ini . Overlooked it because the new directory is very similar to the old one.
Now it works with no problems (Thanks all).


All times are GMT -5. The time now is 10:50 PM.