Article 52QY9 php-apache error spamming logs: Cannot load Zend OPcache - it was already loaded - Ubuntu 18.04

php-apache error spamming logs: Cannot load Zend OPcache - it was already loaded - Ubuntu 18.04

by
matthewlswanson
from LinuxQuestions.org on (#52QY9)
We are running our Moodle server on AWS using the Ubuntu 18.04 bionic AMI. Almost twice a second we are getting the message "Cannot load Zend OPcache - it was already loaded" in /var/log/apache2/error.log. We have them set up in auto-scaling groups to spin up or down with workload.

PHP 7.2.24-0ubuntu0.18.04.4 (cli) (built: Apr 8 2020 15:45:57) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.24-0ubuntu0.18.04.4, Copyright (c) 1999-2018, by Zend Technologies

Our php version is 7.2. I've looked around quite a bit and most people are getting this error due to having 2 versions of opcache.ini in /etc/php/7.2/cli/conf.d but this isn't the case for me:

ls /etc/php/7.2/cli/conf.d 10-opcache.ini 20-apcu_bc.ini 20-curl.ini 20-ftp.ini 20-igbinary.ini 20-mbstring.ini 20-posix.ini 20-simplexml.ini 20-sysvsem.ini 20-xmlreader.ini 20-zip.ini 10-pdo.ini 20-bcmath.ini 20-dom.ini 20-gd.ini 20-intl.ini 20-pdo_pgsql.ini 20-readline.ini 20-soap.ini 20-sysvshm.ini 20-xmlrpc.ini 15-xml.ini 20-calendar.ini 20-exif.ini 20-gettext.ini 20-json.ini 20-pgsql.ini 20-redis.ini 20-sockets.ini 20-tokenizer.ini 20-xmlwriter.ini 20-apcu.ini 20-ctype.ini 20-fileinfo.ini 20-iconv.ini 20-ldap.ini 20-phar.ini 20-shmop.ini 20-sysvmsg.ini 20-wddx.ini 20-xsl.ini

How else can I troubleshoot this? It has been spamming the logs for quite a while. Let me know if there is any other relevant info I can add.latest?d=yIl2AUoC8zA latest?i=QEN-eDW6u6A:9K2XUN6zp8Q:F7zBnMy latest?i=QEN-eDW6u6A:9K2XUN6zp8Q:V_sGLiP latest?d=qj6IDK7rITs latest?i=QEN-eDW6u6A:9K2XUN6zp8Q:gIN9vFwQEN-eDW6u6A
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments