Skip to main content

OPCache installed but disabled in config (PHP8.1)

Comments

11 comments

  • ServerHealers
    Are you using LSAPI handler for PHP or LiteSpeed webserver? If yes, you may have to restart the detached PHP processes to reflect the change instantly or wait until they spawn new processes. For more information about this, please visit this article
    0
  • tinodesigns
    Nope no litesspeed and never herad of LSAPI. Regular cgi handler. Thanks
    0
  • cPRex Jurassic Moderator
    Was this installed through WHM >> EasyApache or specifically on one account using the CloudLinux tools?
    0
  • tinodesigns
    WHM >> Easyapache, for the whole server. I have different PHP Versions running. I first installed PHP 8.1 a few weeks ago until I realized I forgot opcache on PHP 8.1. So I provisoned it again with opcache turned on. Now it is installed but not running.
    0
  • cPRex Jurassic Moderator
    Is it possible the account has a local php.ini file that may be causing a conflict? You can check the same PHP info page for the loaded configuation files and see if something there is being loaded that you aren't expecting. On a test server, once that is installed through EasyApache, it shows up normally in the PHP info page and does have the "--disable-opcache" flag.
    0
  • tinodesigns
    It hast a php.ini file for the old ea-php56 and ea-php72, which are versions I'd like to get rid of once this PHP 8.1 update is fully functioning. I also checked other acocunts that now us PHP 8.1 and they all have the same problem PHP 8.1 is setting config to "--disable-opcache" Would it help if I dump the phpinfo here?
    0
  • tinodesigns
    On a test server, once that is installed through EasyApache, it shows up normally in the PHP info page and does have the "--disable-opcache" flag.

    Could you rephrae that please? I'm not 100% sure what you mean by it. Should I install a test server? Thanks a lot, Tino
    0
  • cPRex Jurassic Moderator
    I just meant that on a clean installation, it should *just work* without you needing to do anything. At this point it would likely be best to create a ticket with our team, since it seems something is weird with the PHP configuration on that system.
    0
  • tinodesigns
    Seems like I got it to work I just don't know how. May be after restarting some service or switching between the php versions worked. I'm not sure. It is working now. Thanks for the help.
    0
  • tinodesigns
    I just double checked all the accounts currently using PHP 8.1 and it is working, I can verify that by using functions like opcache_get_status() However, the phpinfo somtimes shows me '--disable-opcache' and sometime s that sopws as '--enable-opcache' in the configure command. The module info further down in the phpinfo does show it as "Up and Running" with memory, hits and other stats. Does the '--disable-opcache' in the configure command even matter? seems like when it is installed and working, then it is working despite the disable option in the configure command. It is working though now, so I'm happy, just trying to understand. Thanks, Tino
    0
  • cPRex Jurassic Moderator
    I wouldn't expect the PHP info page to flip-flop, as it should matter. I'm wondering if you're seeing cached information on the account after you make your changes. Are you running Nginx or another tool on the machine that could be caching data?
    0

Please sign in to leave a comment.