title: 502 Bad Gateway error on nginx
body: <p>I have a problem on my nginx server, so I tried to update php from 5.3 to 5.5 with this commands:</p>
  
  <pre><code>add-apt-repository ppa:ondrej/php5
  sudo apt-get update
  sudo apt-get install php5
  </code></pre>
  
  <p>Earlier work all right but before I make this update I get 502 Bad Gateway nginx 1.1.19. This is beacause I need to update and the nginx server?please help me
  p.s.
  If I make sudo netstat -lntp | grep ':80' : </p>
  
  <pre><code>tcp  0  0.0.0.0:80  LISTEN 1352/nginx
  </code></pre>