0

I have problem here. I want to try access through browser and use http://localhost/phppgadmin to access phppgadmin but the result of that is:

502 Bad Gateway
nginx

I sure phppgadmin is exist in var/www. How to fix it?

David Foerster
  • 36,890
  • 56
  • 97
  • 151
Mr. Mike
  • 121
  • 1
  • 4

1 Answers1

0

At a guess I will say that maybe you're trying to use php-fpm and it's not currently running, so nginx can't connect to the socket.

try this and then restart nginx

sudo apt install php-fpm
Bazz
  • 246
  • 2
  • 6