• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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