(BEFORE WE START OUR SERVER SOFT: Linux CENTOS 7.7 Virtuozzo [server] v86.0.17 – cPanel / WHM)
Hey, we strive set FastCGI on Engintron, contained in the http_common following this text through nginx.com:
This easy article isn’t so easy…
I attempt to do it and all of the PHP get 404 or 502… (wp-admin/css-bootstrap work on PHP / URI and, merge to PHP like “Autoptimize” plugin for WP)
So… i attempt to cache the 404 and 502 with error blocks for every web page to see what occurred, however generally it adjustments from 404 error to 502 error…
I received suspicious and i’ve hypothesis about PHP-FPM with NGINX… i attempted change in PHP-FPM
the “hear.group” directive to “nginx” contained in the php.conf for every pool (the group title of nginx by engintron) and match them… however nonetheless get the identical errors… nothing change…
i verify the permissions of the socket and even this variation to “nginx:no one” ( cPanel design “no one for httpd.conf” )
All the pieces working and searching advantageous, however nonetheless received the identical errors with FastCGI PHP location block.
So… my final possibility was to vary the “hear” directive inside php-fpm.conf for every pool to
127.0.0.1:9000 and take away socket connection ( very silly, do not do it you probably have cPanel. the structure not allow you to do it, and also you break the server, and that is stoped since you already related by httpd /no one with fastcgi_proxy_mod )
when i alter hear directive inside php-fpm swimming pools they god 502.
fully all of the servers. (not the proper upstream, fastcgi_proxy work on sockets)
what to do guys? how you can join Nginx to PHP-FPM with FastCGI block and really course of the PHP
in one of the best ways?
Like I stated earlier than this what we observe:
and we attempt to put it on the backside of “http_common” through “Engintron” software program / Nginx.
any suggestion guys? please assist?