K
K
Kirill Zhilyaev2017-05-07 14:40:03
Nginx
Kirill Zhilyaev, 2017-05-07 14:40:03

How to fix PHP-FPM socket error?

2017/05/06 21:39:23 [error] 30596#30596: *25319 connect() to unix:/run/php/php7.0-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 195.133.201.17, server: ladybug.hopto.org, request: "POST / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:",

As soon as the script takes too long, I start getting a similar error. How to fix?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
romy4, 2017-05-07
@romy4

in the server section in nginx add
fastcgi_read_timeout 300;

D
Dmitry Shcherbakov, 2017-05-07
@Scherbakov

Can I have the code (parameters) of nginx and php in the studio?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question