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
  • 35,754
  • 55
  • 92
  • 145
Mr. Mike
  • 121
  • 1
  • 4
  • View the logs (nginx and php). Can't tell anything for sure from this error message alone. And does a simple "hello world" php file work in the root directory? – Maadinsh Apr 22 '17 at 13:42

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
  • 206
  • 2
  • 6