• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Issue PHP 8.5 opcache not available

Gjimi

Basic Pleskian
Server operating system version
Debian 12
Plesk version and microupdate number
18.0.77 Update 1
Opcache is not available in PHP 8.5, cannot be installed or enabled.

Can someone report this bug, or is it intentional? If so, how can I manually install opcache in PHP 8.5?
 
How did you check whether or not Opcache is available in PHP 8.5?

Since PHP 8.5, the OPcache extension is included as part of the PHP core. Meaning it is already installed by default and cannot be installed or uninstalled separately. It should also be active by default (but can be deactivated if needed).
 
Last edited:
The following message appears in the syslog:

php-fpm: PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /opt/plesk/php/8.5/lib/php/modules/opcache.so (/opt/plesk/php/8.5/lib/php/modules/opcache.so: cannot open shared object file: No such file or directory)
 
That means, that somewhere (sometimes) a configuration gets used with PHP 8.5 that tries to load opcache.so manually (zend_extension=opcache.so). It probably isn't the default PHP configuration, otherwise you'd would have seen a lot more of the same error in the syslog. Although that also depends on how many domains your have running with PHP 8.5. My guess would be that there might be some domain specific configuration that tries to load the opcache module/extension.
 
Back
Top