3

I updated my OS from Ubuntu 14.04 to version 16.04, and php 7 was installed, but I want to use php 5.6. So I installed php 5.6 and tell Apache to use that version instead of php 7.

But I'm having problems installing php5-pgsql.

I tried with this tutorial, but I get the error

"El paquete php5-pgsql no está disponible, pero algún otro paquete hace referencia a él. Esto puede significar que el paquete falta, está obsoleto o sólo se encuentra disponible desde alguna otra fuente"

what can I do?

Michael Benjamin
  • 346,931
  • 104
  • 581
  • 701
Dafne Defant
  • 79
  • 1
  • 1
  • 9

2 Answers2

16

try this:

sudo apt-get install php5.6-pgsql

Hope it helps!

fconelli
  • 161
  • 4
  • this works, but didnt work with bitnami lamp stack, but works on pure ubuntu when only apache and php are installed – psycho brm May 20 '19 at 20:30
3

U can try the latest version.

sudo apt-get install php7.0-pgsql
Walk
  • 1,531
  • 17
  • 21