Hi I am running multi php ver with ispconfig with Ubuntu 18 /etc/php/8.1/fpm/php-fpm.conf) /etc/php/7.2/fpm/php-fpm.conf) /etc/php/7.0/fpm/php-fpm.conf) /etc/php/5.6/fpm/php-fpm.conf) my website recently keep getting: 502 Bad Gateway nginx/1.18.0 (Ubuntu) for 15 to 30 mins, then back to normal. I google and see that I may need to change the setting in /usr/local/php/etc/php-fpm.conf for below, but there is no such path in my server, and I could not find these setting. where are they? pm.max_children=5 request_terminate_timeout=60 --------------------------------------------------- root@ECS1:~# netstat -anop | grep php-cgi | wc -l 0 root@ECS1:~# netstat -anpo | grep php-fpm | wc -l 57 root@ECS1:~# ps aux | grep php-fpm www-data 756 0.0 0.0 530148 7256 ? S Jul18 0:00 php-fpm: pool www www-data 757 0.0 0.0 530148 7256 ? S Jul18 0:00 php-fpm: pool www root 1034 0.0 0.1 534124 10904 ? Ss Apr16 5:43 php-fpm: master process (/etc/php/8.1/fpm/php-fpm.conf) root 1037 0.0 0.1 545648 10852 ? Ss Apr16 7:35 php-fpm: master process (/etc/php/7.2/fpm/php-fpm.conf) root 1050 0.0 0.2 462564 18852 ? Ss Apr16 5:55 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf) root 1059 0.0 0.1 477896 13968 ? Ss Apr16 5:46 php-fpm: master process (/etc/php/5.6/fpm/php-fpm.conf) root 1072 0.0 0.3 541684 28464 ? Ss Apr16 6:35 php-fpm: master process (/etc/php/7.1/fpm/php-fpm.conf) root 1094 0.0 0.1 543988 11728 ? Ss Apr16 25:03 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf) root 1103 0.0 0.1 527864 10648 ? Ss Apr16 5:51 php-fpm: master process (/etc/php/8.0/fpm/php-fpm.conf) root 1104 0.0 0.1 547364 11240 ? Ss Apr16 5:52 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf) www-data 1193 0.0 0.0 536420 7572 ? S Apr16 0:00 php-fpm: pool www www-data 1194 0.0 0.0 536420 7572 ? S Apr16 0:00 php-fpm: pool www www-data 1243 0.0 0.1 464860 8740 ? S Apr16 0:00 php-fpm: pool www www-data 1244 0.0 0.1 464860 8740 ? S Apr16 0:00 php-fpm: pool www www-data 1255 0.0 0.1 480192 8644 ? S Apr16 0:00 php-fpm: pool www www-data 1265 0.0 0.1 480192 8644 ? S Apr16 0:00 php-fpm: pool www ispapps 1266 0.0 0.0 547340 7524 ? S Apr16 0:00 php-fpm: pool apps-{fpm_domain} ispapps 1276 0.0 0.0 547340 7524 ? S Apr16 0:00 php-fpm: pool apps-{fpm_domain} ispconf+ 1278 0.0 0.2 550576 18924 ? S Apr16 0:10 php-fpm: pool ispconfig ispconf+ 1279 0.0 0.2 550720 19380 ? S Apr16 0:10 php-fpm: pool ispconfig www-data 1294 0.0 0.0 546776 7524 ? S Apr16 0:00 php-fpm: pool www www-data 1303 0.0 0.0 546776 7524 ? S Apr16 0:00 php-fpm: pool www www-data 1308 0.0 0.0 549660 7552 ? S Apr16 0:00 php-fpm: pool www www-data 1313 0.0 0.0 549660 7552 ? S Apr16 0:00 php-fpm: pool www web46 3497 0.0 0.7 576380 63272 ? S Aug08 0:25 php-fpm: pool web46 web46 3520 0.0 0.8 580480 68284 ? S Aug08 0:23 php-fpm: pool web46 web46 3687 0.0 0.8 652776 66728 ? S Aug08 0:24 php-fpm: pool web46 ispconf+ 6197 0.0 0.2 550320 16664 ? S Apr19 0:08 php-fpm: pool ispconfig ispconf+ 6532 0.0 0.2 549408 16372 ? S Jun14 0:03 php-fpm: pool ispconfig www-data 6537 0.0 0.1 543908 9044 ? S Apr16 0:00 php-fpm: pool www www-data 6538 0.0 0.1 543908 9044 ? S Apr16 0:00 php-fpm: pool www web50 7466 0.2 0.7 564468 63096 ? S 09:30 0:22 php-fpm: pool web50 web50 8860 0.2 0.7 563396 58004 ? S 09:48 0:19 php-fpm: pool web50 web50 9049 0.2 0.7 564480 59872 ? S 09:51 0:17 php-fpm: pool web50 web50 9052 0.2 0.7 564464 60524 ? S 09:51 0:17 php-fpm: pool web50 web50 9053 0.2 0.8 570600 66572 ? S 09:51 0:16 php-fpm: pool web50 web50 9055 0.2 0.7 564468 59920 ? S 09:51 0:15 php-fpm: pool web50 web50 9059 0.2 0.7 564468 59632 ? S 09:51 0:16 php-fpm: pool web50 web50 10286 0.2 0.7 564388 60376 ? S 10:05 0:16 php-fpm: pool web50 web50 10480 0.2 0.7 569536 64108 ? S 10:07 0:14 php-fpm: pool web50 web50 12157 0.2 0.7 564452 60132 ? S 10:31 0:11 php-fpm: pool web50 web46 13246 0.0 0.7 652844 65144 ? S Aug08 0:22 php-fpm: pool web46 web46 16952 0.0 0.7 578648 64896 ? S Aug08 0:26 php-fpm: pool web46 web46 17860 0.0 0.8 584568 69412 ? S Aug08 0:25 php-fpm: pool web46 web46 17861 0.0 0.8 948712 71656 ? S Aug08 0:22 php-fpm: pool web46 web2 18842 12.1 1.2 583956 101368 ? S 11:48 0:04 php-fpm: pool web2 web2 18849 7.3 0.9 567044 75060 ? S 11:48 0:01 php-fpm: pool web2 root 18872 0.0 0.0 14432 1064 pts/0 S+ 11:49 0:00 grep --color=auto php-fpm www-data 30027 0.0 0.0 546020 7156 ? S Jul19 0:00 php-fpm: pool www www-data 30028 0.0 0.0 546020 7156 ? S Jul19 0:00 php-fpm: pool www web46 30326 0.0 0.8 654824 69052 ? S Aug08 0:22 php-fpm: pool web46 web46 30331 0.0 0.8 654820 67544 ? S Aug08 0:23 php-fpm: pool web46 web46 30957 0.0 0.8 582768 69428 ? S Aug08 0:23 php-fpm: pool web46 thanks
Perhaps they are in Code: /etc/php/8.1/fpm/php-fpm.conf) /etc/php/7.2/fpm/php-fpm.conf) /etc/php/7.0/fpm/php-fpm.conf) /etc/php/5.6/fpm/php-fpm.conf)
Hi I see the log with this error, which causes the 502 error. Is there any setting in ispconfig server reached max_children setting (10), consider raising it Ispconfig has setting for these.