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

PHP PHP 7.0.18 is available

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Apr 13, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Continue reading...

     
    Last edited: Apr 13, 2017
  2. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    7:35 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Can't get newrelic work with this one :(

    I just upgrade from 5.6.30 to 7.0.18 and i got this error:

    So i edit the :

    Code:
    nano /etc/centminmod/php.d/newrelic.ini
    and comment using ; the newrelic module and restart php and all working perfect !

    But as i want to use newrelic i try to reinstall it using:

    With no errors....

    Then i edit the newrelic.ini and remove the ; and then restart php and i got the same error :(

    What am i missing?
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    7:35 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    ls -lah /usr/local/lib/php/extensions/no-debug-non-zts-20151012

    It is missing :(

    Maybe i need to recompile now the php?
     
  4. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    6:35 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    ;)
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    7:35 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Just kill all processes and remove everything related !

    Reinstall using the above way and at the end i was use also:

    yum install newrelic-php5
    newrelic-install install

    Now all working :)

    Last two questions :)

    Code:
    Below is a list of the directories in which we found a copy of PHP.
    Please select the directory or directories for which you wish to install
    New Relic. You can select either a single directory or
    multiple directories by separating each choice with either a space or a
    comma. To select all of the directories shown, please enter the special
    keyword 'all' (without the quotes).
    
       1)   /usr/local/bin
       2)   /usr/local/bin
    
       0)   Exit
    
       Selection (1-2, 0 to exit or all): all
    
    Found a valid PHP in : /usr/local/bin
             PHP Version : 7.0.18
      Module API version : 20151012
        Module directory : /usr/local/lib/php/extensions/no-debug-non-zts-20151012
      Zend Thread Safety : no
       CLI ini directory : /etc/centminmod/php.d
          Install Status : /etc/centminmod/php.d/newrelic.ini created
          Install Status : OK
    
    Found a valid PHP in : /usr/local/bin
             PHP Version : 7.0.18
      Module API version : 20151012
        Module directory : /usr/local/lib/php/extensions/no-debug-non-zts-20151012
      Zend Thread Safety : no
       CLI ini directory : /etc/centminmod/php.d
          Install Status : OK
    Is this normal to detect the same path twice?

    And last question:

    After that when i update to a new php version it will auto work?

    Thanks !
     
    Last edited: Apr 15, 2017
  6. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  7. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    7:35 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Proper uninstall steps (so we can reinstall at the end) in case of upgrade from 5.x to 7.0.x or to 7.1.x ?

    Or is any way to avoid the uninstall and install again ?
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    uninstall just delete newrelic.ini or comment out with semicolon in front of extension="newrelic.so" line and restart php-fpm though shouldn't be needed as install via upgrade steps outlined at https://community.centminmod.com/threads/newrelic-php-agent-install.11346/ just overwrites old version.
     
  9. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    7:35 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    When i upgrade from php 5.x to 7.x newrelic needs to be reinstalled to work......

    I am asking for proper steps to do this and get it work on the new version.....

    Sorry for my bad english :)
     
  10. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    it's the same thing as install steps at https://community.centminmod.com/threads/newrelic-php-agent-install.11346/. Install, Upgrade are all the same for any PHP major branch upgrades.
     
  11. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    1:35 PM
    latest
    latest
    7.0.19 is available
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+