Welcome to Centmin Mod Community
Become a Member

Upgrade Nginx Upgraded Nginx

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Itworx4me, Apr 10, 2017.

  1. Itworx4me

    Itworx4me Member

    31
    1
    8
    Mar 14, 2017
    Ratings:
    +1
    Local Time:
    10:42 AM
    I just upgraded nginx to 1.11.13. After the upgrade I got a 502 gateway error. I restarted nginx. This didn't help. I ended up restarting php-fpm in order to fix the 502 gateway error. Do you have to restart php-fpm after a nginx upgrade? Just curious for future upgrades.

    Thanks,
    Itworx4me
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,966
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    4:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    normally if you get 502 gateway errors you may need to restart either php-fpm and/or nginx

    restarting both is easy via command shortcut
    Code (Text):
    nprestart
    


    But no it isn't normal to get 502 error after nginx successfully upgrades. You may get 502 during upgrade due to nginx restarts during upgrade but after upgrade should be working. Is this first time nginx upgrade saw 502 at end of upgrade ?
     
  3. Itworx4me

    Itworx4me Member

    31
    1
    8
    Mar 14, 2017
    Ratings:
    +1
    Local Time:
    10:42 AM
    Yes this was the first time I got a 502 error after upgrade.