npyxg1mg2kn7dvk0rl06 asked:
I tried
...
$wgDBserver = "/var/run/postgresql/"
This is the one you should use. Your web server may not have permissions to view that directory. You should first verify that postgres is listening on that socket with:
psql -h /var/run/postgresql
If that works, check SELinux or other things that may be limiting access to that directory. For example, see:
https://serverfault.com/questions/641329/cannot-connect-to-postgresql-unix-d...