title: Postgress and PHP "Ident authentication failed for user"
body: <p>On my local server (Ubuntu 14.04) all work ok. But on test server (Centos) i cannot connect from PHP (Yii 1.1) to my database.
  On both servers i used same dump, user name, password, postgres and php code versions.</p>
  
  <p>On local server apache. On Test nginx.</p>
  
  <blockquote>
    <p>CDbConnection failed to open the DB connection: SQLSTATE[08006] [7]
    FATAL: Ident authentication failed for user "tripinsu"</p>
  </blockquote>
  
  <p>pg_hba.conf:</p>
  
  <pre><code>local   all             all                                     md5
  host    all             all             127.0.0.1/32            ident
  host    all             all             ::1/128                 ident
  </code></pre>