Join the community today
Become a Member

PHP-FPM Zend OPcache requires Zend Engine API version 220100525. ??

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by jscott, Dec 1, 2015.

  1. jscott

    jscott Member

    94
    14
    8
    Aug 13, 2015
    Ratings:
    +31
    Local Time:
    4:50 PM
    I am doing some performance testing and I noticed this message popping up.
    Do I need to do this myself?
    I tried changing my php version to 5.5.x and 5.6.x and still get the same error...

    -John



    [root@ip-xx.yy.zz.uu ~]# cminfo
    Zend OPcache requires Zend Engine API version 220100525.
    The Zend Engine API version 220121212 which is installed, is newer.
    Contact Zend Technologies at Zend the PHP Company for a later version of Zend OPcache.


    ------------------------------------------------------------------
    Centmin Mod Quick Info:
    ------------------------------------------------------------------
    Server Location Info

    ip: xx.yy.zz.uu
    city: Ashburn
    region: Virginia
    country: US

    Processors physical = 1, cores = 1, virtual = 1, hyperthreading = no

    1 2494.052
    1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
    1 25600 KB

    System Uptime: up 2 min, 1
    MySQL Server Started 2015-11-30 21:37:49
    MySQL Uptime: 1 min 9 sec
    MySQL Uptime (secs): 69
    Server Type: xen-hvm
    CentOS Version: 6.7
    Centmin Mod: 1.2.3-eva2000.08
    Nginx PageSpeed: OFF
    Nginx Version: 1.9.7
    PHP-FPM Version: OPcache
    MariaDB Version: 10.0.22
    CSF Firewall: v8.08
    Memcached Server: 1.4.25
    NSD Version: 3.2.18
    Siege Version: 3.1.3
    Maldet Version: not installed
    ClamAV Version: not installed
    ElasticSearch: not installed
    ------------------------------------------------------------------
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    7:50 AM
    Nginx 1.13.x
    MariaDB 5.5
    output for the following

    Code (Text):
    php -v
    php --ini
    php --ri 'Zend Opcache'
    ls -lah /usr/local/bin/php
    


    Code:
    ls -lah $(cat /usr/local/bin/php-config | awk '/^extension_dir/ {extdir=$1} END {gsub(/\047|extension_dir|=|)/,"",extdir); print extdir}')
    To troubleshoot, after php upgrades you need to check the the php upgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues
     
  3. jscott

    jscott Member

    94
    14
    8
    Aug 13, 2015
    Ratings:
    +31
    Local Time:
    4:50 PM
    On this machine I just installed centminmod and tried updating the php version to 5.5.x.
    Once I saw the errors, and poking around some, I tried updating to 5.6.x without zend opcache...
    Still had problems....

    I will get log files soon....

    Thanks!
    -John



    Code:
     
    php -v
    Zend OPcache requires Zend Engine API version 220100525.
    The Zend Engine API version 220131226 which is installed, is newer.
    Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache.
    
    PHP 5.6.16 (cli) (built: Nov 30 2015 22:49:00)
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    [root@ip-172-31-55-166 ~]# php --ini
    Zend OPcache requires Zend Engine API version 220100525.
    The Zend Engine API version 220131226 which is installed, is newer.
    Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache.
    
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/mongodb.ini,
    /etc/centminmod/php.d/redis.ini,
    /etc/centminmod/php.d/zendopcache.ini
    
    [root@ip-172-31-55-166 ~]# php --ri 'Zend Opcache'
    Zend OPcache requires Zend Engine API version 220100525.
    The Zend Engine API version 220131226 which is installed, is newer.
    Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache.
    
    Extension 'Zend Opcache' not present.
    [root@ip-172-31-55-166 ~]# ls -lah /usr/local/bin/php
    -rwxr-xr-x 1 root root 9.0M Nov 30 22:50 /usr/local/bin/php
    [root@ip-172-31-55-166 ~]# ls -lah $(cat /usr/local/bin/php-config | awk '/^extension_dir/ {extdir=$1} END {gsub(/\047|extension_dir|=|)/,"",extdir); print extdir}')
    total 6.4M
    drwxr-xr-x  2 root root 4.0K Nov 30 22:53 .
    drwxr-xr-x. 5 root root 4.0K Nov 30 22:50 ..
    -rwxr-xr-x  1 root root  68K Nov 30 22:53 geoip.so
    -rwxr-xr-x  1 root root 180K Nov 30 22:52 igbinary.so
    -rwxr-xr-x  1 root root 1.1M Nov 30 22:53 imagick.so
    -rwxr-xr-x  1 root root 331K Nov 30 22:52 memcached.so
    -rwxr-xr-x  1 root root 457K Nov 30 22:52 memcache.so
    -rwxr-xr-x  1 root root 1.8M Nov 30 22:52 mongo.so
    -rwxr-xr-x  1 root root 1.1M Nov 30 22:50 opcache.a
    -rwxr-xr-x  1 root root 573K Nov 30 22:50 opcache.so
    -rwxr-xr-x  1 root root 880K Nov 30 22:52 redis.so
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    7:50 AM
    Nginx 1.13.x
    MariaDB 5.5
    try removing /etc/centminmod/php.d/zendopcache.ini

    Code:
    rm -rf /etc/centminmod/php.d/zendopcache.ini
    fpmrestart
    remove opcache.so and opcache.a

    Code:
    cd $(cat /usr/local/bin/php-config | awk '/^extension_dir/ {extdir=$1} END {gsub(/\047|extension_dir|=|)/,"",extdir); print extdir}')
    rm -rf opcache.*
    then run centmin.sh menu option 5 and specify php 5.6.16 and answer yes to Zend Opcache install
     
  5. jscott

    jscott Member

    94
    14
    8
    Aug 13, 2015
    Ratings:
    +31
    Local Time:
    4:50 PM
    I have not had time to look at this again yet...

    I hope to do so in the next day or so....

    Thanks
    -John
     
    • Like Like x 1