Discover Centmin Mod today
Register Now

PHP-FPM Upgrade from latest 5.6.x to 7.0.x error

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pamamolf, Aug 29, 2016.

  1. pamamolf

    pamamolf Well-Known Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +838
    Local Time:
    2:43 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Hi

    I just try to update and i got this:

    Code:
    service php-fpm restart
    Gracefully shutting down php-fpm warning, no pid file found - php-fpm is not running ?
    Starting php-fpm [28-Aug-2016 17:14:20] ERROR: [/usr/local/etc/php-fpm.conf:4] unknown entry '#log_level'
    [28-Aug-2016 17:14:20] ERROR: failed to load configuration file '/usr/local/etc/php-fpm.conf'
    [28-Aug-2016 17:14:20] ERROR: FPM initialization failed
    failed
    7.0
    0
    At line for i have:

    Code:
    #log_level = warning
    don't know why a commented parameter has issues .....


    Anyway i remove it and now i am getting this:

    Code:
    Starting php-fpm [28-Aug-2016 17:17:38] ERROR: [/usr/local/etc/php-fpm.conf:71] unknown entry '#pm'
    I have only 55 lines on the file so don't know why it says line 71 error.....
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,404
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,836
    Local Time:
    9:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    php-fpm.conf uses semi-colon ; for comments not # hash so looks like you edited those values in php-fpm.conf incorrectly
     
  3. pamamolf

    pamamolf Well-Known Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +838
    Local Time:
    2:43 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Don't know how it works before but now i remove the # lines and phpfpm start :)

    Site is down after upgrade and i have to find out why :) Doesn't like php 7?

    from logs:
    Code:
    PHP message: PHP Fatal error:  Redefinition of parameter $topics in /home/nginx/domains/domain.com/public/cache/skin_cache/cacheid_71/
    Looks like a skin issue so i revert to 5.6.x :)
     
    Last edited: Aug 29, 2016
  4. eva2000

    eva2000 Administrator Staff Member

    55,404
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,836
    Local Time:
    9:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    sounds like web app script isn't 100% PHP7 supported, contact web app script developers ;)