Re: Ubuntu 18 + PHP 8.2 + PDO: can't find drivers - Mailing list pgsql-general

From Ray O'Donnell
Subject Re: Ubuntu 18 + PHP 8.2 + PDO: can't find drivers
Date
Msg-id 18abed3b888.2834.f9dd809031fc0469edf0bbbf79c1d468@rodonnell.ie
Whole thread Raw
In response to Ubuntu 18 + PHP 8.2 + PDO: can't find drivers  (Chris Kelly <sampro_domains@yahoo.com>)
Responses Re: Ubuntu 18 + PHP 8.2 + PDO: can't find drivers
List pgsql-general

On 22 September 2023 21:40:38 Chris Kelly <sampro_domains@yahoo.com> wrote:

The need has mostly passed (I used another computer with Ubuntu 20) but are there clear, *working* instructions for how to connect to Postgress on Ubuntu 18 via PDO? I don't see drivers that would work. This is for a Drupal site.

From memory (not at my laptop now) you need to install the php8.2-pgsql package (or maybe it's php8.2-pdo-pgsql). It should just work then... Drupal will notice the driver and offer Postgresql as an option on installation. Don't forget to restart Apache after installing that package 

Ray.


pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: How to fork pg_dump or psql w/o leaking secrets?
Next
From: "Ray O'Donnell"
Date:
Subject: Re: Ubuntu 18 + PHP 8.2 + PDO: can't find drivers