Php 7.1 + opcache not install

mjmartino

New member
Joined
Jan 11, 2017
Messages
4
Hello I need lite help because opcache not loading
DA ver. 1.50.1
CB ver 2.0.0 (rev: 1631)
OK some config
I used php 7.1 fastcgi
Code:
opcache set yes
php.ini set yes
zend set yes
I try build opcache
./build opcache
opCache 7.0.5 is now installed for PHP 7.1.
restart service
i check
php -m | grep -i zend
Zend Guard Loader
[Zend Modules]
Zend Guard Loader

not loading opcache

I try add
-----config 10-directadmin.ini
Code:
extension_dir=/usr/local/php71/lib/php/extensions/no-debug-non-zts-20160303
zend_extension=/usr/local/php71/lib/php/extensions/no-debug-non-zts-20160303/opcache.so
opcache.memory_consumption=256
opcache.interned_strings_buffer=12
opcache.max_accelerated_files=65406
opcache.fast_shutdown=1
opcache.enable_cli=1
opcache.enable=1
opcache.validate_timestamps=0
opcache.enable_file_override=1

Edit /usr/local/php71/lib/php.ini
enable opachce and add extension_dir and zend_extension
still not working

I add even in customize compilation
Code:
enable-opcache
enable-opcache-file

What I can do else ?
 
I try this guide still not loading
Code:
You do not have the Zend OPcache extension loaded, sample data is being shown instead.
 
Just by chance, make sure you are using the proper php binary.

Code:
/usr/local/php71/bin/php -m | grep -i zend
 
Code:
/usr/local/php71/bin/php -m | grep -i zend
Zend OPcache
[Zend Modules]
Zend OPcache
I thing that its fine.
 
I solved problem
Code:
nano /usr/local/directadmin/custombuild/configure/ap2/*configure.php71
add to end
Code:
--enable-opcache
--enable-opcache-file
next
Code:
cd /usr/local/directadmin/custombuild
./build php
 
Back
Top