After lastest update, ignores all ini settings, no opcache php

137495

New member
Joined
Jan 28, 2025
Messages
2
Updated earlier today, and after the update, opcache and most of any type of php cache function no longer work, regardless of the .ini settings. Never had this problem before, and not in any update. Restart services and rebooting server, and rebuilding items in the custom builds does not fix it. No matter what changes are made the php.ini file it ignores all the php.ini settings. Running Rocky Linux and 9.4 and latest version of Litespeed Enterprise via this broken upgrade.

Any ideas or do I need to revert to a backup?
 

Attachments

  • screenshot.2.jpg
    screenshot.2.jpg
    81.4 KB · Views: 62
I stumbled on this thread having a similar if not the same problem.
I'm testing a server with DA+OLS and was checking if things are working as expected.
I use this script: https://gist.github.com/ck-on/4959032/, to fine tune what files need to be blacklisted for opcache.
I thought the script or opcache was not functioning any more. But with phpinfo I could see opcache did work.
User @Ohm J, pointed me in the right direction. A disabled api!
So in /usr/local/phpXX/lib/php.conf.d/11-custom-global.ini I added opcache.restrict_api="", restarted PHP and now everything works as I would like.

I hope this is useful to some people.
 
So in /usr/local/phpXX/lib/php.conf.d/11-custom-global.ini I added opcache.restrict_api="", restarted PHP and now everything works as I would like.
That is odd, because in the global php.ini this is the basic setting.

; Allows calling OPcache API functions only from PHP scripts which path is
; started from specified string. The default "" means no restriction
;opcache.restrict_api=

Seems you have some limit somewhere. This script is working for me without any adjustments.
 
Ah odd... it worked for me I thought.
But now I see if I add that statement, also the "files" works now, that was missing in my case before, just noticed.
 
Last edited:
Back
Top