PHP无法使用postgresql?

I already check all 7 similar questions on this site but can't solve the problem

I have:

Operating System  CentOS Linux 7 (Core)
WEBserver     nginx version: nginx/1.8.1
PHP           5.4.16 (cli) (built: Nov  6 2016 00:29:02)
psql          (PostgreSQL) 9.4.7

But it seems that PostgreSQL support is not enabled in php. My php.info page doesn't show any PostgresSQL section.

installed 
Package php-pgsql-5.4.16-42.el7.x86_64 already installed and latest version

uncoment in php.ini  
    extension=php_pgsql.dll 
    extension=php_pdo_pgsql.dll

restarted Nginx

I checked /etc/php.ini, and it shows that PostgresSQL is enabled. 

cat /etc/php.ini | grep ^pgsql

pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0

in /etc/php.d 
psql.ini 

Enabled pgsql extension module extension=pgsql.so

How to modify nginx.conf to add Postgres support?