After the installation is complete, check the PHP extension.
php -m | grep pdo_pgsql
Php-m and phpinfo should be different profiles that you can see in php-m, stating that you only loaded this in the Php-i|grup php.ini configuration file. So this file, you still have to be in phpinfo (). This mode below see his loaded configuration file location, and then also Add. so file, after the addition, restart the service, the perfect solution, I used to engage in swoole expansion has also met
If you want to change MySQL to PostgreSQL, then you have to let pgsql expand.
PHP, which can be appended using the Phpize tool.
PHP compiler directory under the ext/ 2, according to PHP/bin/phpize;
Install PostgreSQL database;
php-config=/usr/local/php-config
5. Make && make install
php configuration file php-7.0.4/etc/pgsql . So module.
php-7.0.4/lib/ extension=pdo _ restart pgsql module.
PDO_pgsqland pgsql. So location in/usr/local/php/extensions/ no-debug-non-zts-20151012
Configuring PHP and PostgreSQL under Ubutun