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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
fixed now. Had to re-add /tmp with correct permissions and ownership
@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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.