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
I had the same issue. First of all - check is it enabled in php.ini. Uncomment extension=php_pdo_pgsql...
extension=php_pdo_pgsql...
than set up extension directory!!
extension_dir = "ext" ; for your case it could be other dir.
and do not forget to restart server after changing the config.