Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432? in /usr/local/apache2/htdocs/sochi2016/presentations.php on line 12

Warning: pg_last_error(): No PostgreSQL link opened yet in /usr/local/apache2/htdocs/sochi2016/presentations.php on line 12
Could not connect: