Re: Ubuntu 18 + PHP 8.2 + PDO: can't find drivers

From: "Ray O'Donnell" <ray(at)rodonnell(dot)ie>
To: Chris Kelly <sampro_domains(at)yahoo(dot)com>, <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Ubuntu 18 + PHP 8.2 + PDO: can't find drivers
Date: 2023-09-22 21:37:41
Message-ID: 18abed3b888.2834.f9dd809031fc0469edf0bbbf79c1d468@rodonnell.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On 22 September 2023 21:40:38 Chris Kelly <sampro_domains(at)yahoo(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ray O'Donnell 2023-09-22 21:39:48 Re: Ubuntu 18 + PHP 8.2 + PDO: can't find drivers
Previous Message David G. Johnston 2023-09-22 20:50:04 Re: How to fork pg_dump or psql w/o leaking secrets?