Opcache keepsactive after disabeling it

This is it

Verified User
Joined
Feb 12, 2017
Messages
27
I noticed when i disable Opcache in directadmin options, and services are restarted, opcache is still running. What to do?
 
Hello,

rebuild php or remove
Code:
extension=opcache.so
from directadmin.ini
check
Code:
php --ini
to find its location.
 
Hello,

rebuild php or remove
Code:
extension=opcache.so
from directadmin.ini
check
Code:
php --ini
to find its location.

About the opcache.so it isnt in my php
i have php7 but somehow the php location is
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: /usr/local/lib/php.ini
Scan for additional .ini files in: /usr/local/lib/php.conf.d
Additional .ini files parsed: /usr/local/lib/php.conf.d/10-directadmin.ini,
/usr/local/lib/php.conf.d/50-webapps.ini

while i would expect /php71/
However lib/php.ini doenst contain extension=opcache.so
lib/php71/php.ini also doenst contain extension=opcache.so (but has a lot of different opcach settings al ; out)
 
ok, my mistake. Correct should it be:

for PHP 7.0 in 10-directadmin.ini:

Code:
zend_extension=/usr/local/php70/lib/php/extensions/no-debug-non-zts-20151012/opcache.so

for PHP 7.1 in 10-directadmin.ini:

Code:
zend_extension=/usr/local/php71/lib/php/extensions/no-debug-non-zts-20160303/opcache.so

The date in no-debug-non-zts- might differ, so no exact match.
 
Thank you for your time but no zend extensions is available. I tested the php.ini file by changing it. I know for sure it's the right one that I am looking at.
 
Unless you run CloudLinux with their PHP versions or PHP installed by rpm/deb packages... opcache is enabled by custombuild 2.x as an extension in 10-directadmin.ini. That's how things work with the default Directadmin installation, and if your case is different then you need investigate it yourself.

related: http://php.net/manual/en/opcache.installation.php
 
Unless you run CloudLinux with their PHP versions or PHP installed by rpm/deb packages... opcache is enabled by custombuild 2.x as an extension in 10-directadmin.ini. That's how things work with the default Directadmin installation, and if your case is different then you need investigate it yourself.

related: http://php.net/manual/en/opcache.installation.php


Ideed i misunderstood, was still looking in php.ini
i found it in /usr/local/lib/php.conf.d/10-directadmin.ini

Thank you all
 
Back
Top