Discover Centmin Mod today
Register Now

PHP-FPM PHP 7 in centmin config

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by ahmed, Mar 17, 2017.

  1. ahmed

    ahmed Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    9:02 AM
    hi

    what is the recommended setting for php 7 default install on a new vsp

    I will use

    PHP_PGO='y'

    how to force install php 7, or that is enough?
     
  2. Jimmy

    Jimmy Premium Member Premium Member

    1,026
    231
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +555
    Local Time:
    3:02 AM
    1.13.x
    MariaDB 10.1.x
  3. eva2000

    eva2000 Administrator Staff Member

    29,033
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,782
    Local Time:
    5:02 PM
    Nginx 1.13.x
    MariaDB 5.5
  4. ahmed

    ahmed Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    9:02 AM
    thanks everyone, I read both of them been reading all night

    but things not clear for me

    PHP_VERSION='7.0.0RC3' what version shall I put there

    is that correct?

    [CBLOCK]
    PHP_VERSION='7.1'
    PHP_PGO='y'
    ZOPCACHEDFT='y'
    [/CBLOCK]

    I have some plugin that needs mcrypt, but it is not enabled, although i saw it compiled on php7 setup "I choosed NODEBUG option when upgrading to PHP7", or I need to add it in php.ini?


    Best
     
  5. eva2000

    eva2000 Administrator Staff Member

    29,033
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,782
    Local Time:
    5:02 PM
    Nginx 1.13.x
    MariaDB 5.5
  6. ahmed

    ahmed Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    9:02 AM
    but if I setup auto update, the PHP_PGO='y'
    will keep PHP7 each time?
     
  7. eva2000

    eva2000 Administrator Staff Member

    29,033
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,782
    Local Time:
    5:02 PM
    Nginx 1.13.x
    MariaDB 5.5
    yes any variable set in persistent config file at /etc/centminmod/custom_config.inc is retained after centmin mod updates see Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS

     
  8. ahmed

    ahmed Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    9:02 AM
    I know that PHP_PGO='y' will persist, but sorry for the basic question, will the future code base update "automated update with Cron job" will taht ever change phph 7 to 5?
     
  9. ahmed

    ahmed Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    9:02 AM
    If you are upgrading a server which already previously had Centmin Mod installed, you DO NOT need to run option #1 (in fact as of Centmin Mod v1.2.2-eva2000.14 it will be impossible to run option #1 as the script will detect previous install of Centmin Mod and abort the script), instead run option #4 and then #5 for upgrading Nginx web server and upgrading PHP. You only need to run these if you upgrading to new Nginx or PHP version. If your existing Centmin Mod install has the same versions for Nginx and PHP, no need to even run those menu options.
     
  10. ahmed

    ahmed Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    9:02 AM
    I think that is the answer :) sorry

    no need to even run those menu options, I think automatin also will not chnage that
     
  11. ahmed

    ahmed Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    9:02 AM
    I used the php version NGBUG and the installed version now is 7.2.0-dev

    is it suitable for production sites?
     
  12. eva2000

    eva2000 Administrator Staff Member

    29,033
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,782
    Local Time:
    5:02 PM
    Nginx 1.13.x
    MariaDB 5.5
    centmin mod will never auto change your installed php version. Only way is to manually run centmin.sh menu option 5 and specify a php version
    no suited for production
     
  13. ahmed

    ahmed Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    9:02 AM
  14. eva2000

    eva2000 Administrator Staff Member

    29,033
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,782
    Local Time:
    5:02 PM
    Nginx 1.13.x
    MariaDB 5.5
    php can't be auto updated, you have to update via centmin.sh menu option 5 and specify a php version