Welcome to Centmin Mod Community
Register Now

Upgrade Nginx Upgraded Nginx

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

  1. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    4:03 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    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

    54,868
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    9:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    4:03 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    Yes this was the first time I got a 502 error after upgrade.