我最近用nginx,PHP-FPM重新设置了我的服务器。 我做了我一直做的,但现在的Nginx或PHP-FPM不处理PHP文件。 (我使用php phpinfo();)的最简单forms进行testing。
在我的VHOST的错误日志中,我得到:
2013/12/01 03:59:12 [crit] 1201#0: *5 connect() to unix:/var/run/php5-fpm/forums.socket failed (2: No such file or directory) while connecting to upstream, client: 173.245.53.199, server: forums.DOMAIN.DOM, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm/forums.socket:", host: "forums.DOMAIN.DOM", referrer: "http://forums.DOMAIN.DOM/"
有趣的是,在错误中提到的目录是在那里,但PHP的FPM或Nginx不生成在那里的套接字。
资源:
http://paste.ubuntu.com/6502117/