Articles in this section

A lot of warnings appear in php-fpm log after updating Plesk: PHP Warning: Zend OPcache can't be temporary enabled

kb: bug kb: fixed kb: technical Plesk Obsidian for Linux

Applicable to:

  • Plesk for Linux

Symptoms

  • After updating Plesk to version 18.0.71.2 many websites are reporting the following warning:

    WARNING: [pool example.com] child 933098 said into stderr: "PHP message: PHP Warning: Zend OPcache can't be temporary enabled (it may be only disabled till the end of request) in Unknown on line 0"

  • The following setting exists in website's php-fpm configuration file:

    # grep "opcache.enable" /opt/plesk/php/X.X/etc/php-fpm.d/example.com.conf
    php_admin_value[opcache.enable] = 1

  • Same setting is defined in domain's php.ini file:

    # grep "opcache.enable" /var/www/vhosts/system/example.com/etc/php.ini
    opcache.enable = 1

Cause

Product issue:

  • #PPPM-15067 "Fixed the issue where “Zend OPcache can’t be temporary enabled” errors appeared in the PHP-FPM error logs."
    Fixed in:

Resolution

Please consider updating your server:

Workaround

If update is not possible for some reason you may try the following

workaround

Fix was included in Plesk version 18.0.72.

If the issue persists after updating Plesk to the latest build, the following manual action is required:

  1. Connect to the server via SSH
  2. Temporarily remove the conflicting setting with the following command:

    # sed -i '/php_admin_value\[opcache\.enable\] = 1/d' /opt/plesk/php/*/etc/php-fpm.d/*

  3. Restart PHP Handlers:

    # systemctl restart plesk-php*-fpm.service

  4. Run plesk repair utility to rebuild configuration files:

    # plesk repair web -y

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.