![]() Until now i’m still debugging the server, and still confuse. This process will keep loading while a new connection come, in the end it is deadlock! So the nginx keep waiting for Apache, and Apache waiting for MySQL. So my first guess is the Apache server still waiting for MySQL process to finish fetching the data, but it’s not finished. This only happens when i post a new article in WordPress blog. Then after i digging deeper, i found that my Apache causing high cpu load and memory used. Some says because of fastcgi_read_timeout, but i’m not using fastcgi, the nginx server only serving static content. You can refer to my previous post: Install nginx as Reverse Proxy With Apache.Īs i’m digging with Google, there are lot of possibilities of this problem. By the way i installed nginx as reverse proxy with Apache to server my static files. ![]() As far as my understanding this error 504 caused by proxy timeout, or nginx wait too long for apche response. location ~* \.Well these couple days i spent a lot of my time debugging the nginx 504 gateway timeout error. Here, to fix the php file access, in Nginx virtual host configuration, our Support Engineers add FastCGI read timeout variable. Similarly, fix may involve modifying Nginx virtual host configuration too. Nginx virtual host configuration settings max_execution_time = 150Īdditionally, we raised the value of request_terminate_timeout setting in php.ini file too. In CentOS, we located “/etc/php.ini” and increased the value “ max_execution_time” by adding the following entry. service php-fpm restartĪt times, to fix 504 Nginx timeout error, we may need to modify the php settings in php.ini file. Then, we add the following snippet to “nf”. In addition, if the values are already preset in “nf”, we will increase the value.Ģ. Then, our Support Engineers add codes in “nf”. ![]() Sometimes, increasing values in “nf” doesn’t resolve this issue. We edited the file /etc/nginx/conf.d/nf and added the following parameters to file “nf”. To fix the 504 error, we increased the timeout values in the file “nf”.ġ. Recently, in one of the customer’s server, Nginx was set up as a proxy server with PHP-FPM disabled. Usually, adjusting the timeout settings is one of the methods to fix 504 error. Now, let’s see how our Technical Team exactly fixed “504 timeout Nginx” error with different methods. An operation or a script that takes more than 60 seconds to complete fails on a website hosted in Plesk: nginx 504 Gateway Time-out - Support Cases - Plesk. Top reasons for the “504 timeout error,” and quick fix for it in Nginxįrom our experience in managing server, our Support Engineers often deal with this error and fixe it for our customers. In addition, this is a common error, most likely due to process exceeding the PHP execution time limit or the read timeout settings of FastCGI. WPBeginner Facebook Group Get our WordPress experts and community of 80,000+ smart website owners (its free). Usually, the server sends back a 504 HTTP code when the request is not completed. WordPress Video Tutorials WPBeginner’s WordPress 101 video tutorials will teach you how to create and manage your own site(s) for FREE. Now, it is used for serving web pages, as reverse proxy, caching, load balancing, media streaming, and more.įurthermore, a 504 Nginx timeout error is one of the HTTP status code. Nginx is an open-source, high-performance HTTP web server. Today, let’s understand what is 504 timeout error in Nginx and reasons on why this error occurs, also the way Bobcares’ Engineers fix it. That’s why, we often get requests from our customers to fix “504 timeout Nginx ” error as part of our Technical Support Services. Sometimes the errors are completely clueless and users may not know how to fix it.Ī typical example of such an error is “504 timeout error,” in Nginx, a tricky error to resolve. Website errors are always a mess for users.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |