When I get some traffic, server crashed 502 gateway timeout nginx

Posted 3 years ago by jeroenherczeg

So I have two site and a server, one lumen that makes api calls, one laravel for admin.

When I get some traffic, the server crashed 502 gateway timeout.

nginx log, says: 11:19:51 [crit] 880#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client:, server: example.com, request: "GET /login HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "example.com"

php5-fpm.log says: 23-Nov-2015 11:06:08] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful (After reboot)

MySQL no problems

I have tried a lot but kind seem to find the problem.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.