Join the community today
Become a Member

PHP-FPM Phpfpm upgrade to latest 5.4.39 does not update also zendopcache to latest 7.0.4

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pamamolf, Mar 26, 2015.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    5:26 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi
    I update phpfpm to latest version 5.4.39 but it doesn't update also zendopcache to latest 7.0.4 :(

    This is what i have to centmin.sh:


    Code:
    ZOPCACHECACHE_VERSION='7.0.4'  # http://pecl.php.net/package/ZendOpcache
    or i have to install it manually ?
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    1:26 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what version of Zend Opcache you have 7.0.3 or 7.0.4 from php -v output ?

    did you recompile/upgrade PHP after making change in centmin.sh ?
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    5:26 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    I had php v5.4.35 and by default centmin.sh has:

    Code:
    ZOPCACHECACHE_VERSION='7.0.4'
    And i edit only this from n to y :

    Code:
    ZOPCACHEDFT='y'
    Then i upgrade from menu "option 5" to 5.4.39 and i got this:

    Code:
    [root@server ~]# php -v
    PHP 5.4.39 (cli) (built: Mar 26 2015 01:57:14)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
        with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
     
    Last edited: Mar 26, 2015
  4. eva2000

    eva2000 Administrator Staff Member

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    1:26 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    For PHP <5.5 you need to use centmin.sh option 12 & sub menu option 2 to reinstall Zend Opcache once ZOPCACHECACHE_VERSION='7.0.4' is set

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.08 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu                 
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Exit
    --------------------------------------------------------
    Enter option [ 1 - 22 ] 12
    --------------------------------------------------------
    
    --------------------------------------------------------
            Zend OpCache Sub-Menu            
    --------------------------------------------------------
    1). Install Zend OpCache for PHP <5.5 or <5.6
    2). Reinstall Zend OpCache for PHP <5.5 or <5.6
    3). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 3 ] 
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    5:26 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Option 3 is back to main menu :(

    Code:
    1). Install Zend OpCache for PHP <5.5 or <5.6
    2). Reinstall Zend OpCache for PHP <5.5 or <5.6
    3). Back to Main menu
    Do you mean option 2 Reinstall?
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    1:26 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    sub menu option 2 heh
     
  7. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    5:26 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Ok i did it and i got one error:

    Code:
    Do you want to reset zendopcache.ini settings to default (y) or keep existing zendopcache.ini settings (n)? [y/n]: n
    replace: File '/etc/centminmod/php.d/zendopcache.ini' not found (Errcode: 2 "No such file or directory")
    Does it removes my zendopcache.ini because i say no?

    php -v

    Code:
    [root@server centminmod-123.08centos7beta02]# php -v
    PHP 5.4.39 (cli) (built: Mar 26 2015 01:57:14)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    Something is wrong as zendopcache is missing :(

    And on admin panel i got:

    Code:
    You do not have the Zend OPcache extension loaded, sample data is being shown instead.

    *Problem fixed by reinstalling Zend Opcache 7.0.4 and answered yes to replace my zendopcache.ini settings to default...

    It will be good if you fix this please :)

    Thanks George... !
     
    Last edited: Mar 26, 2015