Warning: pg_connect(): Unable to connect to PostgreSQL server: connection to server at "127.0.0.1", port 5432 failed: FATAL: could not open file "global/pg_filenode.map": Permission denied connection to server at "127.0.0.1", port 5432 failed: FATAL: could not open file "global/pg_filenode.map": Permission denied in /var/www/bash-it.ru/inc/db/pg.php on line 21

Fatal error: Uncaught TypeError: Cannot assign bool to property pg::$conn of type ?PgSql\Connection in /var/www/bash-it.ru/inc/db/pg.php:21 Stack trace: #0 /var/www/bash-it.ru/inc/db/pg.php(15): pg::connectto() #1 /var/www/bash-it.ru/inc/includes.php(25): pg::connect() #2 /var/www/bash-it.ru/index.php(8): include('...') #3 {main} thrown in /var/www/bash-it.ru/inc/db/pg.php on line 21