Nginx + PHP-FPM (11:resource temporarily unavailable) ____php

Source: Internet
Author: User
Tags fpm

http://hily.me/blog/2010/02/nginx-php-fpm-resouce-temporarily-unavailable/

Today on the test server on the Nginx + PHP-FPM environment, the results found that the PHP page frequently 502 bad Gateway error.
Nginx version: nginx/0.7.61
php-fpm:php-5.3.0-fpm-0.5.12
Nginx error log:

Connect () to Unix:/tmp/php-fpm.socket failed (11:resource temporarily unavailable) while connecting to upstream

It seems to be PHP-FPM's problem to look at the foreigner's discussion:

http://forum.nginx.org/read.php?3,31467,31467

The reason is that PHP-FPM is not using the backlog setting of the system when backlog is set to-1.
So we need to explicitly specify the backlog parameter.

Put the PHP-FPM in the configuration file:

<value name= "Backlog" >-1</value>

Change into:

<value name= "Backlog" >1024</value>

Problem elimination.

–eof–

---------

PESTD: After testing restart PHP-FPM, Nginx error_log does not appear error log, 502 of the log is reduced.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.