The path /etc/php/8.1/cli/php.ini gives it away a bit, this is the configuration for your CLI PHP. You should be modifying the configuration for FPM that webservers make use of.
Sep 7, 2022
2
Level 3
Pdo_pgsql extension issue
Hi, I make sudo apt -y install php8.1-pgsql and uncomment ;extension=pdo_pgsql found in "etc/php/8.1/cli/php.ini" and restart apache but when I tried to connect to my postgres server with my php script I get this message : COULD NOT FIND DRIVER
Please or to participate in this conversation.