I accidentally the files in my tmp folder and now I am getting a 502 error on all of the sites running on my server.
Getting the following error in my error.log
2017/06/23 12:21:00 [crit] 17256#0: *1 connect() to unix:/var/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 81.132.245.224, server: boss-14-001.bareface.work, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm.sock:”, host: “boss-14-001.bareface.work”, referrer: “http://boss-14-001.bareface.work/”
I also get the following in my syslog
I am very new at this so if you can help, please be as clear as possible. As far as I can see I may have deleted php7.0-fpm.sock but not sure how to restore that.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
fixed now. Had to re-add /tmp with correct permissions and ownership
This comment has been deleted
@dev3a892af9f2c224325df0b94 Restart PHP service:
sudo service php7.0-fpm restart
You might have issues with lingering services, so it might be easier to restart the server, since that will create the socket files again for all your services.
realise I didn’t add full syslog error