• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Zend OPcache is loaded but not activated

technique-web

New Pleskian
Server operating system version
Debian 10.13
Plesk version and microupdate number
Plesk Obsidian 18.0.49
Hi,
I've installed WP OPcache Wordpress Plugin and it show this message :
Zend OPcache is loaded but not activated. You need to set opcache.enable=1 in your php.ini
I've enabled opcache extension from Tools & Settings > PHP Settings > Settings for 7.4.33 FPM application :
1678727636113.png

It's also OK in php.ini :
1678727701514.png

phpinfo says it's OK :
1678727840693.png

But the problem remains and the plugin do not display any data about opcache usage :
1678727947538.png

I'm not sure but I thing this is can be the problem root :
1678728057755.png
Maybe the plugin can't read the opcache status since the function is disabled, I've tried many things but nothing happened :(
- I've followed the solution given here : Issue - Unable to change php.ini "disable_functions" globally
- I've enabled opcache in /opt/plesk/php/7.4/etc/php.d/10-opcache.ini (I don't understand why Plesk uses this file !)

Here some details about my server :
OS: Debian 10.13
Product: Plesk Obsidian 18.0.49

What's wrong with opcache under plesk ?
 
The reason why Plesk disabled the opcache_get_status PHP function by default since Plesk Onyx 17.8 was due to the following two security points:
  • On a shared hosting, since any customer is able to call OPcache functions PHP: OPcache Functions - Manual, by clearing out the cache using the function in question, an attacker customer can make the target customer have no benefits from caching;
  • Moreover, an attacker customer can see names of target’s cached PHP files.
If you are not sharing your server with other users, you can go to Domains > example.com > PHP Settings and remove opcache_get_status from disabled functions: Empty the "disable_functions" field:

1678732097056.png

so that it looks like this:

1678732149454.png
Then store the new PHP settings.
 
Back
Top