Skip to content

Instantly share code, notes, and snippets.

@wilsolutions
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilsolutions/7f2018f59d4c9c6a6901 to your computer and use it in GitHub Desktop.
Save wilsolutions/7f2018f59d4c9c6a6901 to your computer and use it in GitHub Desktop.
Error:
2011/03/15 17:07:12 [crit] 7836#0: *7 connect() to unix:/tmp/phpfpm.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: wils.drupal7.com.br, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/phpfpm.sock:", host: "wils.drupal7.com.br"
---
Cause: PHP-FPM misconfiguration.
---
Solution:
1 - Check the php-fpm configuration: vi /etc/php-fpm.d/www.conf
2 - Comment the line ";listen = 127.0.0.1:9000"
3 - Add the line: listen = /tmp/phpfpm.sock
4 - Restart: /etc/init.d/php-fpm restart
5 - Enjoy! =D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment