Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot load Zend OPcache

Discussion in 'CloudLinux' started by jlucho, Oct 4, 2017.

  1. jlucho

    jlucho Member

    Joined:
    Aug 5, 2006
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    Dear

    i use centox 6.x + cpanel + cloudlinux

    i see this error message in:

    tail -f /usr/local/apache/logs/error_log


    [Wed Oct 04 23:44:20.923764 2017] [:error] [pid 577044:tid 140258494158592] [client 22.181.125.188:18891] Cannot load Zend OPcache - extension already loaded
    [Wed Oct 04 23:44:23.272415 2017] [:error] [pid 577044:tid 140258483668736] [client 18.6.168.243:59322] Cannot load Zend OPcache - extension already loaded
    [Wed Oct 04 23:44:23.332334 2017] [:error] [pid 576937:tid 140258356213504] [client 12.0.102.40:37234] Cannot load Zend OPcache - extension already loaded
    [Wed Oct 04 23:44:24.468809 2017] [:error] [pid 576938:tid 140258219845376] [client 7.9.152.241:58975] Cannot load Zend OPcache - extension already loaded

    I have already reviewed and deactivated opcache, but the incident persists.

    What could be wrong?


    php -v

    ea-php-cli Copyright 2017 cPanel, Inc.
    Cannot load Zend OPcache - extension already loaded
    PHP 5.6.31 (cli) (built: Sep 15 2017 11:03:28)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.1.0 (), Copyright (c) 2002-2017, by ionCube Ltd.
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies
     
  2. HostingH

    HostingH Well-Known Member

    Joined:
    Jan 13, 2008
    Messages:
    97
    Likes Received:
    7
    Trophy Points:
    58
    cPanel Access Level:
    Root Administrator
    Hello,

    It seems that there is multiple entries for Zend OPcache in php configuration file. Please have look in php.ini and comment them.

    Thanks,
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Are you using a custom php.ini file within this account? If so, check for multiple "extension" entries for this module in the custom php.ini file, as mentioned in the previous post.

    Thank you.
     
  4. jlucho

    jlucho Member

    Joined:
    Aug 5, 2006
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    thank

    I commented the line and restart apache

    [root@s5 etc]# cat /opt/cpanel/ea-php56/root/etc/php.d/zendguard.ini

    ; Enable Zend Guard Loader extension module
    zend_extension="/opt/cpanel/ea-php56/root/usr/lib64/php/modules/ZendGuardLoader.so"
    ;zend_extension="/opt/cpanel/ea-php56/root/usr/lib64/php/modules/opcache.so"

    now , php -v show correctly , all fine

    [root@s5 etc]# php -v
    ea-php-cli Copyright 2017 cPanel, Inc.
    PHP 5.6.31 (cli) (built: Sep 15 2017 11:03:28)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.1.0 (), Copyright (c) 2002-2017, by ionCube Ltd.
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies


    BUT , tail -f /usr/local/apache/logs/error_log , still showing errors when re-trying to read opcache

    [root@s5 etc]# tail -f /usr/local/apache/logs/error_log
    [Thu Oct 05 11:26:19.791288 2017] [:error] [pid 888051:tid 140455339558656] [client 78.7.37.20:61849] Cannot load Zend OPcache - extension already loaded, referer:
    [Thu Oct 05 11:26:20.403082 2017] [:error] [pid 888050:tid 140455475926784] [client 40.7.17.13:15548] Cannot load Zend OPcache - it was already loaded
    [Thu Oct 05 11:26:32.140208 2017] [:error] [pid 888051:tid 140455329068800] [client 17.29.10.4:52660] Cannot load Zend OPcache - extension already loaded, referer:
    [Thu Oct 05 11:26:33.325738 2017] [:error] [pid 888050:tid 140455381518080] [client 10.27.6.10:60162] Cannot load Zend OPcache - extension already loaded, referer:


    Now, where could the problem be? where else can this bookstore be kept?
    Now, where could the problem be? where else can you save this file opcache.so?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Check the following files for duplicate entries:

    Code:
    /opt/cpanel/ea-php56/root/etc/php.d/opcache.ini
    /opt/cpanel/ea-php56/root/etc/php.ini
    Thank you.
     
  6. jlucho

    jlucho Member

    Joined:
    Aug 5, 2006
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    thank


    in /opt/cpanel/ea-php56/root/etc/php.ini there is no reference to opcache

    view :

    [root@s5 ~]# cat /opt/cpanel/ea-php56/root/etc/php.ini | grep "opcache"

    [root@s5 ~]# cat /opt/cpanel/ea-php56/root/etc/php.ini | grep opcache


    both results return empty, and then, when I try to check the other file, I see that it does not exist

    [root@s5 ~]# cat /opt/cpanel/ea-php56/root/etc/php.d/opcache.ini
    cat: /opt/cpanel/ea-php56/root/etc/php.d/opcache.ini: No such file or directory

    the problem persists ,, any other alternative?


    [root@s5 ~]# php --ini
    Configuration File (php.ini) Path: /opt/cpanel/ea-php56/root/etc
    Loaded Configuration File: /opt/cpanel/ea-php56/root/etc/php.ini
    Scan for additional .ini files in: /opt/cpanel/ea-php56/root/etc/php.d
    Additional .ini files parsed: /opt/cpanel/ea-php56/root/etc/php.d/01-ioncube.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/bcmath.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/bz2.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/calendar.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/ctype.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/curl.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/dba.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/dom.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/enchant.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/exif.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/fileinfo.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/ftp.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/gd.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/gettext.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/gmp.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/iconv.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/imap.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/intl.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/json.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/ldap.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/local.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/mbstring.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/mcrypt.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/mysqlnd.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/mysqlnd_mysql.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/mysqlnd_mysqli.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/odbc.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/pdo.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/pdo_mysqlnd.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/pdo_odbc.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/pdo_pgsql.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/pdo_sqlite.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/pgsql.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/phar.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/posix.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/pspell.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/shmop.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/simplexml.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/snmp.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/soap.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/sockets.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/sourceguardian.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/sqlite3.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/sysvmsg.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/sysvsem.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/sysvshm.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/tidy.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/tokenizer.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/xml.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/xml_wddx.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/xmlreader.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/xmlrpc.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/xmlwriter.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/xsl.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/zendguard.ini,
    /opt/cpanel/ea-php56/root/etc/php.d/zip.ini
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look?

    Thank you.
     
Loading...

Share This Page