- Plesk for Linux
There are a lot of entries like the following in
CONFIG_TEXT: WARNING: [pool example.com] child 11485 said into stderr: "ERROR: Unable to set php_value'opcache.enable'"
WARNING: [pool example.com] child 26863 said into stderr: "NOTICE: 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"
Duplicated PHP directives are defined in PHP settings that enable Opcache.
- Login into Plesk.
- Remove the code that enables Opcache or the duplicate directive
opcache.enable=1in Domains > example.com > Websites & Domains > PHP Settings > Additional directives.
Alternatively, this can be done through the command line:
Connect to the server using SSH.
- Delete duplicated directive from /var/www/vhost/system/example.com/etc/php.ini.