title: Valet 502 Bad Gateway
body: <p>valet is not working after I updated php from 7.3 to 7.4. I already tried to reinstall valet, php, nginx and dnsmasq but it's still not working.
  Now the ngix server is running but I can't acces to my projects. I get the error 502 Bad Gateway for every project url.</p>
  <p>The services are running but brew services dont show the correct status.</p>
  <pre><code>dnsmasq       unknown root      /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
  gitlab-runner started user      /Users/user/Library/LaunchAgents/homebrew.mxcl.gitlab-runner.plist
  mysql@5.7     started user      /Users/user/Library/LaunchAgents/homebrew.mxcl.mysql@5.7.plist
  nginx         unknown root      /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
  php           error   root      /Library/LaunchDaemons/homebrew.mxcl.php.plist
  php@7.4       unknown root      /Library/LaunchDaemons/homebrew.mxcl.php@7.4.plist
  redis         started user      /Users/user/Library/LaunchAgents/homebrew.mxcl.redis.plist
  </code></pre>
  <p>Nginx error log</p>
  <pre><code>2021/01/27 16:35:21 [crit] 35081#0: *1 connect() to unix:/Users/user/.config/valet/valet.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: , request: &quot;GET /favicon.ico HTTP/1.1&quot;, upstream: &quot;fastcgi://unix:/Users/user/.config/valet/valet.sock:&quot;, host: &quot;devtest.test&quot;, referrer: &quot;http://devtest.test/&quot;
  </code></pre>