pdo is working fine with mysql but with pgsql its giving error \'PDOException\' with message \'could not find driver\' I\'ve installed php5-pgsql p
\'PDOException\' with message \'could not find driver\'
php5-pgsql
Here is what I did to solve the problem.
Edit php.ini and remove ; from extension=pdo_pgsql. Also, add extension=pgsql.so to the php.ini file.
php.ini
;
extension=pdo_pgsql
extension=pgsql.so
Make sure to restart the Apache server before you try to see the result.