Start the iptables website in the Centos + nginx + wordpress environment and return the 502 website environment: Centos & nbsp; nginx & nbsp; php (wordpress). The following is a summary of the current problems: 502 is returned when the iptables
Start the iptables website in the Centos + nginx + wordpress environment and return the 502 iptables nginx fastCGI
Website environment: Centos nginx php (wordpress)
The problem is summarized as follows:
When the iptables website is started, 502 is
The LNMP one-click installation package is set up in the environment, but I found that the 502 Bad Gateway error occurred in some pages during my wordpress background. Let's look at the solution below.My PHP version is 5.2.17Mysql version
1. Install Docker
Before we really start, we need to make sure that Docker is installed on our Linux machines. The host we use is CentOS 7, so we use the following command to install Docker using the Yum Manager.
# Yum Install Docker
Wordpress 502 Bad Gateway solutionFirst, modify the configuration of php-fpm:// Www/wdlinux/php/etc/php-fpm.conf/Www/wdlinux/etc/php-fpm.conf change max_children from the previous 10 to the current 30, so that there is sufficient php-cgi process can
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
Installing the necessary software using YumYum install nginx php php-fpm php-mysql mysql-server-ySet each software to bootChkconfig Nginx onChkconfig mysqld onChkconfig PHP-FPM onConfigure NginxVim/etc/nginx/conf.d/default.confPress the letter "I"
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
** First introduce lnmp **
Lnmp is: nginx + MySQL + PhP website server architecture in Linux
Nginx is a high-performance HTTP and reverse proxy server and an IMAP/POP3/SMTP proxy server.
MySQL is a small relational database management system.
If you encounter a 502 problem in nginx, you can take the following two steps as a priority.1. Check whether the current PHP FastCGI Process count is sufficient: The code is as follows:Copy code Netstat-anpo | grep "php-cgi" | wc-l If the
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.