title: Nginx. connect() to unix:/tmp/php.socket failed
body: <p>I am trying to setup nginx on my ubuntu vm and trying to host a php website. I am trying to replicate a server setup on my ubuntu vm. I am getting this error when i try to access the php page from my nginx server. I tried to look up for the php.socket file inside the /tmp/ folder but there's nothing in it. is there something wrong with fastcgi or php on my vm. </p>
  
  <p>The complete error is as follows:</p>
  
  <pre><code>[crit] 9267#0: *1 connect() to unix:/tmp/php.socket failed (2: No such file or directory) while connecting to upstream, client: 192.168.xxx.xxx, server: xxx.xxx.xxx.com, request: "GET /admin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php.socket:", host: "xxx.xxx.xxx..com"
  </code></pre>
  
  <p>please help. I dont know why is this happening am i missing a package or something. I have already got everything installed i guess and have got the same configurations on my local as server.</p>