• Resolved Tom

    (@tomwenk)


    Hey, I was just about to install and activate WP OPcache to check out where we can still get something out of it server-side.
    Unfortunately, the OPcache plugin tells me to set opcache.enable=1.

    but in php.ini this value is already enabled. How should I proceed now? Something is very wrong here 😀

    [url=https://ibb.co/mGyPSy8][img]https://i.ibb.co/jTwjHwR/Bildschirmfoto-2021-10-19-um-16-35-41.png[/img][/url]

    [url=https://ibb.co/LgLH5vQ][img]https://i.ibb.co/HPW3dXN/Bildschirmfoto-2021-10-19-um-16-36-32.png[/img][/url]

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author nierdz

    (@mnttech)

    Hey,

    Thanks for the report !

    This means the function opcache_get_status returns false. This means there is an error during information retrieval from OPcache.

    Maybe you can find useful information in your php logs or ask your hosting company if you’re using one.

    Same Problem:

    IF OPCache Module is not present, you must catch function!!!

    if ( function_exists( ‘opcache_get_status’ ) ) {
    if ( ! opcache_get_status() ) {
    }
    }

    But my System also is not running, although Zend OPcache is enabled!!!

    Zend OPcache
    Opcode Caching Up and Running
    Optimization Enabled
    SHM Cache Disabled
    File Cache Enabled
    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 On On
    opcache.enable_file_override Off Off
    opcache.error_log no value no value
    opcache.file_cache /kunden/homepages/20/d34869179/htdocs/AM/.opcache /kunden/homepages/20/d34869179/htdocs/AM/.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.lockfile_path /tmp /tmp
    opcache.log_verbosity_level 1 1
    opcache.max_accelerated_files 4000 4000
    opcache.max_file_size 0 0
    opcache.max_wasted_percentage 5 5
    opcache.memory_consumption 128 128
    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.restrict_api no value no value
    opcache.revalidate_freq 60 60
    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

    Plugin Author nierdz

    (@mnttech)

    Maybe this function is disabled on your host ?
    Could you test a php file like this one please :

    
    <?php
      echo ini_get('disable_functions');
    ?>
    
    • This reply was modified 2 years, 5 months ago by nierdz.

    no echo output!

    But i tried to configure:
    php.ini
    disable_functions = popen,exec,system,passthru,proc_open,shell_exec,show_source,phpinfo

    phpinfo is off

    Warning: phpinfo() has been disabled for security reasons in /homepages/20/d34869179/htdocs/AM/phpinfo.php on line 2

    so
    <?php
    echo ini_get(‘disable_functions’);
    ?>
    why no output?

    Plugin Author nierdz

    (@mnttech)

    what’s your hosting solution ?

    ionos.de, dedicated Server

    Plugin Author nierdz

    (@mnttech)

    I think I found it, this is when you set opcache.file_cache_only to true. This partially disable opcache_get_status().

    Could you try to put this parameter to false, this is the default

    Plugin Author nierdz

    (@mnttech)

    Any news about this @dbase66 ?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘PHP.ini Issue’ is closed to new replies.