Install opCache on 2PHP version

arazit

Verified User
Joined
Aug 20, 2008
Messages
184
Hello,
I get error when I want to install opCache.
first php version is 5.6
second php version is 5.4
When I run ./build update_versions I get error:

Zend Guard Loader is not compatible with opCache with PHP versions 5.3/5.4. Please disable one of the extesions or upgrade your PHP version.

I dont want opCache in php 5.4 but I want in php 5.6
How to do?
Thank you
 
I get error in:
./build modsecurity_rules
Zend Guard Loader is not compatible with opCache with PHP versions 5.3/5.4. Please disable one of the extesions or upgrade your PHP version.
 
I'd recommend loading extension=opcache.so directly in PHP 5.6 ini file (php.conf.d/11-extensions.ini, for example). opCache is built-in with PHP 5.6, so it doesn't need to be installed, you just need to load it in PHP configuration.
 
adding extension=opcache.so in phpini doesnt work it still shows opcache disabled.
using php70 though
 
It's probably because you added it to the main php.ini file, and not 11-extensions.ini in php.conf.d :) Make sure that extension_dir="" is set in php.ini, if you want to load it in global config.
 
Back
Top