• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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