Discover what is error 502 bad gateway, include the articles, news, trends, analysis and practical advice about what is error 502 bad gateway on alibabacloud.com
In the Nginx reverse proxy mode, the page loading is incomplete or the 502 bad gateway appears directly.
There are many cases of 502 bad Gateway, most of which are related to the se
likely that one of these websites is faulty or overloaded. Contact the website administrator.
A general explanation of the solution to 502 bad getway errors
1. What is 502 bad getway
You can try to clear the browser cache access to your FTP to see if you can log in
Successfully resolved 502 Bad Gateway error
Log on Today, show 502 bad Gateway,nginx the most annoyi
tired" php-cgi that is being processed will encounter the 502 Bad gateway error if it encounters a problem.
The following is a more detailed introduction:
Some websites running on Nginx sometimes encounter "
processing of the request will appear 504 Gateway time-out this error, and is dealing with the "very tired" of the few php-cgi if encountered problems will appear 502 bad Gateway this error
connect to the IP address. Writes an HTTP data stream through this socket. The HTTP data stream that receives the response from your Web server. The data flow includes a state encoding whose value depends on the HTTP protocol. Resolves the data stream to obtain status codes and other useful information.
This error is generated in the last step described above, when the client receives an HTTP status encodi
hope the changes will not appear this error. Alas, since the online search for such a long answer, it is certainly useful to record the things, lest I go to Google next time ~Because I used the LNMP one-click installation package, out of the problem must first go to the official forum to search under, really good, the official has a such a sticky post, we first look at.LNMP One-click installation package o
for so long the answer, that of course must be useful things recorded, lest I go to Google next time ~
As I was using the LNMP one-button installation package, out of the question must first go to the official forum to search under, really good, the official has such a sticky post, we first see.
LNMP One-button installation package The official:
The first reason: the current LNMP a key installation package more problems is
502 Bad Gateway error solutionThere are many causes of Nginx 502 errors because of problems with backend servers in proxy mode. These errors are not nginx problems, so you must find the cause from the backend! However, nginx has put all these errors on its own, which makes i
. Contact the administrator of the Web site.
Checkupdown Error
Increased use of proxies and caching on the network. Our Checkupdown machine will always try to connect to the real computer host, which is actually the website you visit, but we are not fully controlled, our HTTP request is actually over. If only one link of the computer processing our HTTP request
: You can try to manually install the tool based on the script in the lnmp one-click installation package to see what caused the error. The second reason is:
In PHP. in INI, The eaccelerator configuration item must be placed before the Zend optimizer configuration, otherwise it may also cause 502
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
Some websites that run on Nginx sometimes appear "502 Bad Gateway" errors, even when they occur frequently. Here are some of the Nginx 502 error troubleshooting methods compiled from Google for your reference:The reason for Nginx 502
, 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, FP
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 ser
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 r
To find some of the Internet and 502 bad gateway errors related to the problems and troubleshooting methods, first from the fastcgi configuration start:
1. See if the fastcgi process has started
The meaning of the NGINX 502 error is
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
Php-cgi supported by php-fpmModify the php-fpm process count in/usr/local/php/etc/php-fpm.conf to find max_children and change the following value to the value you want to set.. The code is as follows:Copy code # Vim/usr/local/php/etc/php-fpm.conf # Max_children indicates the processing process of php-cgi. Setting max_children also needs to be set based on the server performance, increasing the number of processes and occupying memory.It will als
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.