• dleigh

    (@dleigh)


    Hi,

    Though I get the message:

    OPcache is not enabled on this site. Main plugin features are disabled.

    in the OpCache Manager settings.

    I’ve successfully done a:

    wp opcache warmup

    There IS plenty of data in the .opcache directory that I setup today.

    Here are my analytics from the wp-cli command:

    +——————+—————————————————+———+——-+———–+
    | kpi | description | value | ratio | variation |
    +——————+—————————————————+———+——-+———–+
    | Scc. | Appels r??ussis au cache. | 0.0 | 0% | 0% |
    | M??moire totale | M??moire totale disponible pour OPcache. | 0o | 100% | 0% |
    | Cl??s | Cl??s attribu??es par OPcache. | 0 | 0% | 0% |
    | Tampon | Taille du tampon. | 0o | 0% | 0% |
    | Disponibilit?? | Temps de disponibilit?? extrapol?? sur 24 heures. | 18 h. | 75% | 0% |
    | Scripts | Scripts actuellement pr??sents dans le cache. | 0.0 | – | -0% |
    +——————+—————————————————+———+——-+———–+

    (the messed up diacritic accents are in the display I see as well.)

    So if OpCache is working, why am I unable to use OpCache Manager in the WordPress admin?

    Thanks!

    • This topic was modified 1 year ago by dleigh.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello @dleigh!

    The way OPcache Manager verify if OPcache is “usable” for itself is by verifying the standard PHP functions opcache_get_status() and opcache_get_configuration() exist. If it says “OPcache is not enabled on this site[…]” it’s because something in the PHP configuration disable one or both of these functions.

    It’s a pretty common thing with many hosting providers to have these functions disabled. Can you verify if yours disabled one of them?

    Thread Starter dleigh

    (@dleigh)

    Hello @pierrelannoy,

    So the OpCache implementation at my host (IONOS) is Zend. Here’s what phpinfo tells me about the Zend OpCache parameters currently:

    Opcode Caching? Up and Running
    Optimization? Enabled
    SHM Cache? Disabled
    File Cache? Enabled
    JIT? Disabled
    Startup? OK?

    Directive	Local Value	Master Value
    opcache.blacklist_filename no value no value
    opcache.consistency_checks 0 0
    opcache.dups_fix Off Off
    opcache.enable On On
    opcache.enable_cli Off Off
    opcache.enable_file_override Off Off
    opcache.error_log no value no value
    opcache.file_cache /***/htdocs/.opcache /***/htdocs/.opcache
    opcache.file_cache_consistency_checks On On
    opcache.file_cache_only On On
    opcache.file_update_protection 2 2
    opcache.force_restart_timeout 180 180
    opcache.huge_code_pages Off Off
    opcache.interned_strings_buffer 8 8
    opcache.jit tracing tracing
    opcache.jit_bisect_limit 0 0
    opcache.jit_blacklist_root_trace 16 16
    opcache.jit_blacklist_side_trace 8 8
    opcache.jit_buffer_size 0 0
    opcache.jit_debug 0 0
    opcache.jit_hot_func 127 127
    opcache.jit_hot_loop 64 64
    opcache.jit_hot_return 8 8
    opcache.jit_hot_side_exit 8 8
    opcache.jit_max_exit_counters 8192 8192
    opcache.jit_max_loop_unrolls 8 8
    opcache.jit_max_polymorphic_calls 2 2
    opcache.jit_max_recursive_calls 2 2
    opcache.jit_max_recursive_returns 2 2
    opcache.jit_max_root_traces 1024 1024
    opcache.jit_max_side_traces 128 128
    opcache.jit_prof_threshold 0.005 0.005
    opcache.lockfile_path /tmp /tmp
    opcache.log_verbosity_level 1 1
    opcache.max_accelerated_files 3000 3000
    opcache.max_file_size 0 0
    opcache.max_wasted_percentage 5 5
    opcache.memory_consumption 32 32
    opcache.opt_debug_level 0 0
    opcache.optimization_level 0x7FFEBFFF 0x7FFEBFFF
    opcache.preferred_memory_model no value no value
    opcache.preload no value no value
    opcache.preload_user no value no value
    opcache.protect_memory Off Off
    opcache.record_warnings Off Off
    opcache.restrict_api no value no value
    opcache.revalidate_freq 180 180
    opcache.revalidate_path Off Off
    opcache.save_comments On On
    opcache.use_cwd On On
    opcache.validate_permission Off Off
    opcache.validate_root Off Off
    opcache.validate_timestamps On On

    Other than adjusting the directives for Zend OpCache in the php.ini file, I’m not sure what I can do. Do any of those directives correspond to opcache_get_status() and opcache_get_configuration()?

    Thanks!

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello?@dleigh!

    If you want to verify if these(or one of these) function(s) is disabled, you have to search for disable_functions = … in php.ini. Or maybe in the managing panel (I don’t know which one is used by Ionos but in Plesk, for example, there is a field to set disabled php functions).

    As I don’t know Ionos, I think you have to ask them…

    Thread Starter dleigh

    (@dleigh)

    So these functions would be listed just as you named them?

    opcache_get_status() and opcache_get_configuration()

    Our php.ini is very short:

    memory_limit = 1024M
    upload_max_filesize = 128M
    error_reporting = E_ALL | E_STRICT;
    log_errors = On;
    display_errors = Off;
    error_log = /***/htdocs/php-errors.log;
    opcache.file_cache=/***/htdocs/.opcache;
    zend_extension=opcache.so;
    opcache.enable=1;
    opcache.memory_consumption=128;
    opcache.interned_strings_buffer=8;
    opcache.max_accelerated_files=26000;
    opcache.revalidate_freq=180;
    opcache.fast_shutdown=0;
    opcache.enable_cli=0;
    opcache.revalidate_path=0;
    opcache.validate_timestamps=1;
    opcache.max_file_size=0;
    opcache.file_cache_only=1;

    So there’s no “disable_functions” in there. In my phpinfo, the disable_functions is empty. Anything that mentions OpCache in the phpinfo output is under the Zend OpCache section that I already posted.

    IONOS, unfortunately, does not give you a place where you can turn on and off PHP modules, like in cPanel, for instance – at least not on OUR hosting plan. So if I ask their support what to turn on, am I asking them to turn on?

    opcache_get_status() and opcache_get_configuration()

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Yes, that’s YOUR php.ini. In fact, the actual configuration is done by merging many php.ini (including yours). What you have to observe is the “result” of this merge… You can do it with phpinfo() function.

    If you want a “shortcut”, you can do that with a plugin like this one. After activating it, just verify strings like disable_functions and disable_classes. It would be a first insight…

    Thread Starter dleigh

    (@dleigh)

    Well, like I just said:

    In my phpinfo, the disable_functions is empty. Anything that mentions OpCache in the phpinfo output is under the Zend OpCache section that I already posted.

    So if there is something else I can check in the phpinfo, I have it all. Just let me know what to look for, please.

    Hey @dleigh Did you get this solved? I have a client with IONOS and am running into the same problem.

    Thread Starter dleigh

    (@dleigh)

    I’m sorry to say that I did not, and I’ve recently moved the client to another hosting company. Personally, I hope that I don’t ever have to support someone on IONOS again.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘OPcache is not enabled on this site. Main plugin features are disabled.’ is closed to new replies.