docker-php8-sf5-nginx-pqsql-boilerplate
docker-php8-sf5-nginx-pqsql-boilerplate copied to clipboard
Could not find driver
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
sorry my fault, I ran Symfony command outside the docker container where isn't installed pdo_psgql. :facepalm: