Get the most out of your Centmin Mod LEMP stack
Become a Member

PHP PHP 5.6.0 Released

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

  1. rdan

    rdan Well-Known Member

    5,439
    1,399
    113
    May 25, 2014
    Ratings:
    +2,188
    Local Time:
    1:38 PM
    Mainline
    10.2
    For me, it's a big improvement :D
    I don't suffer anymore the out of children problem with PHP-FPM.
    Hopefully not again :D
    Even though I'm just using single pool.

     
  2. Floren

    Floren Active Member

    148
    77
    28
    Jun 6, 2014
    Ratings:
    +77
    Local Time:
    12:38 AM
    You only need it to have the /proxy/image.jpg format, right? You should post this into XenForo suggestions to have it addressed and explain there why you need the /proxy/image instead of proxy.php. I would do it myself but I don't know the advantages, like you do. :)
     
  3. Floren

    Floren Active Member

    148
    77
    28
    Jun 6, 2014
    Ratings:
    +77
    Local Time:
    12:38 AM
    For sure you don't, @eva2000 is your dad. :D
     
  4. pamamolf

    pamamolf Premium Member Premium Member

    4,071
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    7:38 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    I think is better to use one pool if you have only one big site on the server ....
    And if you get this error why not just increase it a bit?
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    give it time :)

    yeah probably need to :)

    :LOL:

    you can read @RoldanLT pain at PHP-FPM - WARNING: [pool www] server reached max_children setting (50), consider raising it | Centmin Mod Community :)
     
  6. Floren

    Floren Active Member

    148
    77
    28
    Jun 6, 2014
    Ratings:
    +77
    Local Time:
    12:38 AM
    You can't go high just like that, there is a logic behind. You might blow server's entire memory if you just dump settings.

    My explanation
     
    Last edited: Aug 29, 2014
  7. Floren

    Floren Active Member

    148
    77
    28
    Jun 6, 2014
    Ratings:
    +77
    Local Time:
    12:38 AM
    A nice way to encourage @RoldanLT, heh. Let him be happy for a day at least. :D
     
  8. Andy

    Andy Active Member

    542
    89
    28
    Aug 6, 2014
    Ratings:
    +132
    Local Time:
    11:38 PM
    I did a phpedit and uncomment out the line
    opcache.memory_consumption=512

    I increase the default 64 value to 512 and then do a fpmrestart but on my monitor page, it still shows 64MB.

    What else i need to do?
    This is on .07 and after i upgrade to php 5.6.0
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    that's because Zend Opcache has it's own zendopcache.ini file that overrides any changes in php.ini PHP-FPM - Where is zend opcache ini file ?

    You need to do your edits in /etc/centminmod/php.d/zendopcache.ini
     
  10. rdan

    rdan Well-Known Member

    5,439
    1,399
    113
    May 25, 2014
    Ratings:
    +2,188
    Local Time:
    1:38 PM
    Mainline
    10.2
  11. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah that would be one reason for it - it's exactly what I stated at PHP-FPM - WARNING: [pool www] server reached max_children setting (50), consider raising it | Centmin Mod Community where delayed and queued PHP processes can consume all PHP-FPM children processes. Even got the 10 second delay right LOL
     
  12. rdan

    rdan Well-Known Member

    5,439
    1,399
    113
    May 25, 2014
    Ratings:
    +2,188
    Local Time:
    1:38 PM
    Mainline
    10.2
  13. Andy

    Andy Active Member

    542
    89
    28
    Aug 6, 2014
    Ratings:
    +132
    Local Time:
    11:38 PM
    I have those files in that dir but i got 404 if I go to hostname/32324_opcache.php
     
  14. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Well that ain't right but I do something for opcache.php - I added in for password protection of the opcache.php file .08 beta01 line 81 to 128 there should be a /root/centminlogs/zendopcache_passfile.txt file with user/pass. I guess I need to re-test and see as .08 beta01 defaults to PHP 5.4.33 + APC Cache 3.1.13

    is the hostname correctly set in server_name for /usr/local/nginx/conf/conf.d/virtual.conf ?
     
    Last edited: Sep 21, 2014
  15. Andy

    Andy Active Member

    542
    89
    28
    Aug 6, 2014
    Ratings:
    +132
    Local Time:
    11:38 PM
    The server_name is correct. it's set as abc.quantnet.com and then I go to abc.quantnet.com/2334_opcache.php

    I remember having the same issue in the past on one of the server and it's only resolved after I updated nginx. Not sure if this is related.
     
  16. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    tried simple nginx + php-fpm restart ? shortcut command to restart both is
    Code:
    nprestart
    or reload
    Code:
    npreload
    Probably need to document this but here's an example of the new .08 beta01 protection notice for opcache.php on PHP upgrades which detect PHP >5.5 versions

    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 ] 5
    --------------------------------------------------------
    
    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]: n
    PHP Upgrade - Would you like to continue? [y/n] y
    
    Install which version of PHP? (version i.e. 5.4.33): 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
    
    Code:
    Creating htpasswd_opcache user/pass...
    /usr/local/nginx/conf/htpasswd.sh create /usr/local/nginx/conf/htpasswd_opcache opadmin EWp3******rOakXw==
    
    /usr/local/nginx/conf/htpasswd_opcache contents:
    opadmin:$apr1$XDHFhIsI$/Gl9/l1dL**************F/
    
    Create include file /usr/local/nginx/conf/include_opcache.conf
    
                location ~ ^/(13978_opcache.php) {
        include /usr/local/nginx/conf/php.conf;
            auth_basic "Password Protected";
            auth_basic_user_file /usr/local/nginx/conf/htpasswd_opcache;
                }
    
    Setup virtual.conf
    Adding /usr/local/nginx/conf/include_opcache.conf include entry
     
  17. Andy

    Andy Active Member

    542
    89
    28
    Aug 6, 2014
    Ratings:
    +132
    Local Time:
    11:38 PM
    I did nprestart/npreload, etc but I can't access any of the file in that dir, even the cmlogo
     
  18. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  19. pamamolf

    pamamolf Premium Member Premium Member

    4,071
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    7:38 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    change permissions to file to nginx/nginx ?
     
  20. Andy

    Andy Active Member

    542
    89
    28
    Aug 6, 2014
    Ratings:
    +132
    Local Time:
    11:38 PM
    On the new server, here is the permission mask
    -rw-r--r--. 1 nginx nginx 21639 Sep 19 19:42 30648_opcache.php

    On the old server which it was working
    -rw-r--r-- 1 nginx nginx 21639 Aug 29 21:36 22044_opcache.php

    Notice the . in the permission mask in the new server. Not sure if it makes a difference.