Learn about Centmin Mod LEMP Stack today
Become a Member

PHP PHP 5.6.0 Released

Discussion in 'Nginx and PHP-FPM news & discussions' started by pamamolf, Aug 28, 2014.

  1. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:46 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    remember to temporarily comment out memcached backends in your PHP apps like Xenforo BEFORE upgrade of PHP 5.6.0

     
  2. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    9:46 AM
    Mainline
    10.2
  3. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:46 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    hehe.. I am mindful of this, as I actually forgot to do that myself :LOL:
     
  4. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    9:46 AM
    Mainline
    10.2
  5. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:46 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. Andy

    Andy Active Member

    542
    89
    28
    Aug 6, 2014
    Ratings:
    +132
    Local Time:
    8:46 PM
    I have commented out this line on the xenforo config
    //$config['cache']['backend'] = 'Apc';

    Then upgrade to 5.6.0 and option 12, then 1. Then remove the comment out line in the config file.
    However, when I go to the myapc.php file to check the status, it says No cache info available. APC does not appear to be running.

    The same thing after I run fpmrestart.
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:46 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @Andy when you ran centmin.sh menu option 5 and specific PHP 5.6.0 as the version to upgrade to, did you answer yes when prompted for Zend OpCache install ? As answering yes, will remove APC Cache as the php opcacher and use Zend OpCache. The same if you ran menu option 12 and submenu option 1 to install Zend Opcache - it will replace APC Cache as PHP opcacher.

    You would of seen some prompts like below

    Code:
    Do you want to run YUM install checks ?  [y/n]
    
    This will increase your upgrade duration time wise.
    Check the change log centminmod.com/changelog.html
    to see if any Nginx or PHP related new additions
    which require checking YUM prequisites are met.
    If no new additions made, you can skip the
    YUM install check to speed up upgrade time.
    
    [y/n]:
    PHP Upgrade - Would you like to continue? [y/n] y
    
    Install which version of PHP? (version i.e. 5.4.32): 5.6.0
    Do you want to update to latest php-fpm.conf ? It will overwrite your existing php-fpm.conf [y/n]: n
    
    -----------------------------------------------------------------------------------------
    Detected PHP 5.6 branch.
    You can compile Zend OPcache (Zend Optimizer Plus+) support
    as an alternative to using APC Cache or Xcache cache.
    But Zend OPcache only provides PHP opcode cache and
    DOESN'T do data caching, so if you web apps such as Wordpress,
    Drupal or vBulletin require data caching to APC or Xcache,
    it won't work with Zend OPcache.
    
    -----------------------------------------------------------------------------------------
    Do you want to use Zend OPcache [y/n] ? y
    Zend Opcache doesn't support user data caching like APC Cache, so switch to Memcached for Xenforo backend caching. I use Centmin Mod default installed Memcached server + memcached PHP extension via Libmemcached for this forum (Xenforo) instead.

    PHP:
    $config['cache']['backend'] = 'Libmemcached';

    $config['cache']['backendOptions'] = array(
    'servers' => array(
    array(
    'host' => '127.0.0.1',
    'port' => 11211,
    'persistent' => 'true',
    'weight' => 1
    )
    )
    );
     
  8. Andy

    Andy Active Member

    542
    89
    28
    Aug 6, 2014
    Ratings:
    +132
    Local Time:
    8:46 PM
    Ah, @eva2000
    I have been using APC for years and I remember you said that APC is preferable.
    So I always answered No to that ZenOpcache question.
    So i guess going to 5.6.0, APC is not an option any more?
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:46 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Well Zend Opcache can be up to 60% faster than APC Cache for PHP opcode caching just no data caching support.

    I did try APCu which is a fork for APC Cache to strip opcode caching and only do APC data caching but seems Xenforo doesn't support APCu see PHP-FPM - Experimenting with APCu data only caching with PHP 5.5/Zend OpCache | Centmin Mod Community

    So your choice is install APC Cache again via centmin.sh menu option 9 (which will remove Zend Opcache automatically) or keep Zend Opcache + enable memcached server backend for Xenforo config.php.

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.07 - 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 ] 9
    --------------------------------------------------------
     
  10. Andy

    Andy Active Member

    542
    89
    28
    Aug 6, 2014
    Ratings:
    +132
    Local Time:
    8:46 PM
    I have updated it again, this time using Zend cache instead of APC.
    Do you have a way to check the cache like what we had with myapc.php

    Thanks
     
  11. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    9:46 AM
    Mainline
    10.2
  12. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:46 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you should have a XXX_opcache.php or XXX_op.php file in /usr/local/nginx/html (access as yourhostname/XXX_opcache.php). You can rename the file to whateveryouwant.php :)

    then password protect the file and/or ip restrict it via nginx name vhost for virtual.conf https://community.centminmod.com/threads/how-to-properly-password-protect-a-directory-or-file.579

    command shortcut typed in SSH window = vhostconf - only edits /usr/local/nginx/conf/conf.d/virtual.conf for your main hostname Nginx vhost as outlined in Getting Started with Centmin Mod
     
  13. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:46 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Last edited: Aug 29, 2014
  14. pamamolf

    pamamolf Premium Member Premium Member

    4,070
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    4:46 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    It seems a small about 5% better performance :(
    I hope they will release 5.7 soon (NGphp) that has alot better performance :)
     
  15. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:46 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  16. pamamolf

    pamamolf Premium Member Premium Member

    4,070
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    4:46 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Confused :)

    The huge performance improvement (more than 20%) will start from 5.7 or from 7.0?
     
  17. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:46 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    there will be no PHP 5.7, next PHP version after PHP 5.6 is PHP 7.x (which will be PHP NG) strangely !

    PHP: rfc:php6

     
    Last edited: Aug 29, 2014
  18. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    9:46 AM
    Mainline
    10.2
    I feel PHP 5.6 is much faster ;)
    Been using it on my Live forum for almost 24 hours.
    No error logs found, either XenForo admin log or php-fpm log :)
     
  19. pamamolf

    pamamolf Premium Member Premium Member

    4,070
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    4:46 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Around the net are talking for 7% about compared to 5.5 :)
     
  20. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:46 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah only small improvement over PHP 5.5

    Yeah same here, besides Digitalpoint proxy image addon not working with PHP 5.6.0 :(