docker-php8-sf5-nginx-pqsql-boilerplate icon indicating copy to clipboard operation
docker-php8-sf5-nginx-pqsql-boilerplate copied to clipboard

Could not find driver

Open Machacek76 opened this issue 3 years ago • 1 comments

Hi, I install your boilerplate at server (U20) but app not connect to pgsql.

$ php bin/console doctrine:database:create
[critical] Error thrown while running command "doctrine:database:create". Message: "An exception occurred in driver: could not find driver"

In AbstractPostgreSQLDriver.php line 102:
  An exception occurred in driver: could not find driver

In Exception.php line 18:
  could not find driver

In PDOConnection.php line 38:
  could not find driver

pdo_psql PHP module is running in php-fpm container

root@f56f6f6c0864:/var/www# php -m
[PHP Modules]
apcu
Core
ctype
curl
date
dom
fileinfo
filter
ftp
hash
iconv
intl
json
libxml
mbstring
mysqlnd
openssl
pcre
PDO
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
readline
Reflection
session
SimpleXML
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Machacek76 avatar Nov 20 '21 19:11 Machacek76

sorry my fault, I ran Symfony command outside the docker container where isn't installed pdo_psgql. :facepalm:

Machacek76 avatar Nov 20 '21 22:11 Machacek76