Centos upgrade 7.2 to 7.4 issue need help

using centos 7 naigx php7.2 wnat to update to 7.4 i do alot of staff there now im on 7.4 but web stop working 502 Bad Gateway
error can some one post the correct steps to update PHP with out losing anything