Answer the question
In order to leave comments, you need to log in
Why is it getting 502 error when accessing php page?
I installed ubuntu 20.04, according to this instruction I rolled up the LEMP stack, if we go to the html page, everything is fine, if we go to the php page it knocks out a 502 error. Restarting nginx and the machine as a whole does nothing.
Config /etc/nginx/sites-enabled/default
Answer the question
In order to leave comments, you need to log in
502 error - this is not to nginx, but to the one who is behind it. In your case, apparently - to PHP. Either the processing is incorrectly configured in the web server, or something with the PHP itself or the script.
Because php-fpm didn't respond. And why did not answer, look in his logs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question