/wwwroot/jifen.51.com/www/index.php'(Request:"Get/center/index") Execution timed out(31.055392sec), terminating[ in-dec- . ,: -: One] WARNING: [Pool www] Child9978, script'/opt/wwwroot/jifen.51.com/www/index.php'(Request:"Get/center/index") Execution timed out(30.037908SEC), terminatingOpen the php-fpm.conf configuration file, set the Request_terminate_timeout = 30 set of a single script execution more tha
, find a balance point.
There's also a lazy approach to max_children,
If your PHP is 5.3, then you can set the FPM style to Apache-like, this time the number of children by FPM automatic control. The corresponding configuration parameters are
Start_servers: Number of start processes
Min_spare_servers: Minimum number of processes
Max_spare_servers: Maximum number of processes
When the server is more idle, FPM will take the initiative to kill some redundant children, to save resources, when the se
probably a problem--one of those sites that has a device failure or overload. Contact the administrator of the Web site.
About 502 Bad Getway the solution to the error of the popular explanation
1. What is 502 bad Getway error
In short, 502 is an error type code
502 Bad Gateway Causes
A server (not necessarily a Web server) is a gateway or proxy to meet customer requirements, such as a Web browser or our Checkupdown robot, to access the requested URL. This server received an invalid response from an upstream server to fulfill its requirements.
Meaning
This usually does not
Today, my VPs frequently prompts that the nginx 502 Bad Gateway is incorrect. After the VPs is restarted, it becomes annoying. I cannot figure it out. There was no problem when my website reached 1290 of the traffic in the previous two days. Why did 502 Bad
The first reason: Install LNMP a key installation package when PHP did not install successfully and 502 bad Gateway, starting from 0.9 as long as the installation of success or failure will be prompted. Failure to install the general reason is that before the installation of PHP, some LIB packages in the script may not be installed, causing PHP failed to compile
the reason for the 502 Bad Gateway appears:
1, the general we open the page when the 502 bad Gateway, indicating that the server did not correspond, that is, our web server did not receive valid information caused.
S
Site Access Tips 502 Bad gateway how to solve. According to the analysis is generally the PHP thread open file handle restricted caused.share in Linux environment site hints 502 Bad Gateway solution
1, raise the file handle
processes" is close to the preset "fastcgi process", then the "fastcgi process count" is not sufficient and needs to be increased. But be careful to calculate whether your memory is enough to support more processes, if the physical machine memory is not large enough, it is useless to increase the number of processes.2, some of the PHP program execution time than the Nginx wait time, you can appropriately increase the nginx.conf configuration file fastcgi timeout time, as follows:http{......Fast
Test site found, keep clicking to save large information data, after a period of time, the page appears
502 Bad Gateway
The proxy server received an invalid response to upstream server.
Checked, according to Http://bbs.chinaunix.net/viewthread.php?tid=1230212 said, httd.conf Tim Plus
Setenv force-proxy-request-1.0.1Setenv proxy-nokeepalive 1
Is not a mistake
Millions of data were checked directly Nginx 502 bad gateway. Another server is good. I cannot log on to the server to view the configuration. Ask you to get nginx+php comrades. What are the settings of your server? I sent it to the hardware department.
Reply to discussion (solution)
The way to resolve 502 Bad Gateway is:
1. Depending on the performance of the server, in the php-fmp.conf to increase the value of Max_children, I currently use 15.
(a php-fpm uses about 20M of RAM, if your memory is about 1G,1024/20=50)
2. Use the reload parameter to reload the PHP-FPM periodically. Release the memory used by PHP-FPM, the PHP script execution
After buying a cloud server, the system automatically installs the Nginx 1.6 + PHP 5.3.28 + mysql 5.5
After the PHP program into the cloud server, the first test program access to normal, normal speed
But put the program on the line after the visit, will gradually find that access to the PHP page more and more slowly, and finally directly appear 502 bad gateway
The first reason for the nginx 502 Bad Gateway error of the one-click lnmp installation package is that the lnmp one-click installation package has many problems: 502 Bad Gateway. In most cases, the reason is that before installin
LNMP upgrade php5.4.28 or later version error 502 bad Gateway
Encounter a very strange problem, with LNMP./upgrade_php.sh upgrade php5.4.27 normal.
But upgrade to php5.4.28 error, Access p.php hint: Nginx 502 bad Gateway. Try agai
debug, find a balance point.
There's also a lazy approach to max_children,
If your PHP is 5.3, then you can set the FPM style to Apache-like, at which time the number of children is automatically controlled by FPM. The corresponding configuration parameters are
Start_servers: Number of start processes
Min_spare_servers: Minimum number of processes
Max_spare_servers: Maximum number of processes
When the server is idle, FPM will actively kill some extra children to conserve resources, and the ser
WordPress 502 Bad Gateway Solution
The first is to change several configurations of the PHP-FPM:
/www/wdlinux/php/etc/php-fpm.conf
/www/wdlinux/etc/php-fpm.conf Max_children from the previous 10 to the current 30, so that there is sufficient php-cgi process can be used;Change the request_terminate_timeout from the previous 0s to 60s, so that the php-cgi proces
The following error occurs when you access phpMyAdmin.PhpMyAdmin-ErrorCannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.The first time you open the prompt, refresh the prompt:502 bad gatewayView nginx error log:[Error] recv () failed (104: Connection reset by peer) while reading response header from upstream, cli
LNMP common 502 Bad Gateway Problems
When we configure LNMP, we always encounter 502 problems. Whether it is in the browser or using the curl command, it is easy to see "502 Bad Gateway
Nginx + Apache + SSL + SVN svn copy 502 Bad Gateway
When Nginx is used to access the SVN server through https, the following error occurs when svn copy is executed:Svn: Server sent unexpected return value (502 Bad Gateway) in resp
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.