I
I
Iskander Mammadov2016-07-18 18:42:58
PHP
Iskander Mammadov, 2016-07-18 18:42:58

Why can't Nginx see php5-fpm.sock?

Hello!
I installed Nginx+PHP-FPM on a clean system, initially wrote in default.conf nginx'a:
fastcgi_pass 127.0.0.1:9000and PHP worked fine, but my goal was to make nginx work through fastcgi_pass unix:/var/run/php5-fpm.sock, specifying this parameter, nginx'a error.log displays following:

2016/07/18 18:40:28 [crit] 10505#10505: *54 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream

PHP-FPM is running...
I have CentOS 7. What do you think could be the problem and should I hang myself already?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question