PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, March 15, 2022

[FIXED] Database Exception – yii\db\Exception : could not find driver

 March 15, 2022     centos, php, postgresql, yii     No comments   

Issue

I am working on Centos in Yii2. I have upgraded php 5.4 to php 7.1.19 but after upgrading it is showing me the error:

Database Exception – yii\db\Exception could not find driver Caused by: PDOException could not find driver

I have added config files in /etc/php.d and /usr/lib64/php/modules but it still gives me the same error. I have checked using php -me the extension for pgsql is not available.

Any suggestion would be a great help. Thank you.


Solution

It was an issue with the installation files. Installing the following command did the job: yum install php-pgsql



Answered By - vikesh
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing