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
Today, I set up a WORDPRESS site in the newly installed Linode VPS. Who knows that there was an inexplicable 502 Bad Gateway error when step = 2.20110112200117-156870207 [1]At the beginning of thought is the concurrency and memory problems, adjusted the php-fpm.ini, also re-compiled php. The problem persists. Okay. Check the Centos logs.# Less/var/log/messages //
by the page consumption of our site may be too large.
On the Internet to find a solution, in the foreign site saw a way to increase the buffer, thoroughly solve the problem of Nginx 502 bad Gateway. The method is as follows:
HTTP {
...
Fastcgi_buffers 8 16k;
Fastcgi_buffer_size 32k;
...
}
Increase the above two configuration items by yourself, depending on the server's already web site.
Second, pr
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 setting of the Nginx timeout problem. The following is a discussion of a situation that is relatively rare but has to be noted.
Presence
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 error?In short, 502 is the gateway with the error type code bad getway.2. Cause of errorWhen the connection times out, we send a reques
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 annoying place is often this error, because I do not intend to spend too much time on the technology, so the general is encountered related p
Recently, server downtime occurs frequently. When I get off work, G crashes and 502 Bad Gateway Nginx reminds me of the previous 504 Gateway Time-out, the two should be in a certain relationship. Nginx 504 Gateway Time-out means that the requested Gateway does not have a req
. conf:Fastcgi_connect_timeout 300 s;Fastcgi_send_timeout 300 s;Fastcgi_read_timeout 300 s;Fastcgi_buffer_size 128 K;Fastcgi_buffers 8 128 K; #8 128Fastcgi_busy_buffers_size 256 K;Fastcgi_temp_file_write_size 256 K;Fastcgi_intercept_errors on;The most important setting here is the first three, that isFastcgi_connect_timeout 300 s;Fastcgi_send_timeout 300 s;Fastcgi_read_timeout 300 s;This specifies the connection, send, and read time for the PHP-CGI, 300 seconds is enough, so my server rarely get
Recently, the phenomenon of server downtime more frequent, temporary work, G to hang up, 502 Bad Gateway Nginx, I can not help but remind me before the 504 gateway time-out, the two should be a bit of contact, we must find out. The implication of Nginx 504 Gateway time-out is that the requested
introduce
A server (not necessarily a WEB server) is being used as a gateway or proxy to fulfill a request from a customer (such as your browser or our Checkupdown robot) to access the desired URL. To complete the request, this server accesses an upstream server but receives an invalid response.
This usually does not mean that the upstream server is closed (no response to the gateway/proxy), but that the up
LNMP a key installation package for the environment but I found my WordPress backstage, some of the page 502 Bad Gateway error problem, let's look at the solution.
My PHP version is 5.2.17.
MySQL version is 5.1.60
WordPress version 3.8.3
Read the PHP-FPM log, basically are similar to the following error
Some websites that run on Nginx sometimes appear "502 Bad Gateway" errors, even when they occur frequently. The following is a small compilation of some of the Nginx 502 error troubleshooting methods, for reference:The reason for Nginx 502 error is more because of a problem with the backend server in proxy mode. These errors are generally not the problem of nginx itself, be sure to find the reason from the
Some websites running on Nginx sometimes appear as "502 Bad Gateway" errors, some times even frequently. The following is a small compilation of some of the Nginx 502 error troubleshooting Methods for reference:
The reason for the Nginx 502 error is more due to a problem with the backend server in Agent mode. These errors are generally not nginx itself problem, must look for the reason from the back end! B
this time, Nginx cannot transfer the PHP file to PHP-FPM processing, so the CPU will be reduced to very low (not to handle PHP, not to execute SQL), and the load will rise to very high (close and open children, nginx wait php-fpm), the network card traffic is also reduced to very low ( Nginx cannot generate data transfer to client)Solving the problem is simple, increase the number of children, and set max_requests to 0 or a larger value, restart PHP-FPMThe implication of Nginx 504
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 Gateway appear this time? Depressed !!! After searching for a
First, 502 bad gateway meaning
502 Bad Gateway English translates into 502 types of errors or invalid gateways, where 502 refers to the error type code.
Second, produce 502 bad Gateway error reason
There are many reasons fo
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 it highly questionable for nginx promoters. After all, we can understand the word "bad
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 error is more because of a problem with the backend server in proxy mode. These errors are generally not the problem of nginx itself, be sure to find the reason from the back e
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 response to COPY request
Solution:Location /{Proxy_redirect off;Proxy_set_header Host $ host;P
Yesterday's own machine old tips 502 Bad Gateway error, the following small series to give you a summary of the Nginx appeared 502 the solution, the wrong gateway, have encountered such problems of friends can refer.Cause of Occurrence1, PHP fastcgi process number is not enoughThe number of PHP fastcgi processes is not guaranteed when there is a huge amount of co
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.