3

I am developing my project with

  • PHP 5.6.27
  • PostgreSQL 9.6.1
  • RedHat 7 OS

I had searched for the php_pgsql package everywhere. also tried with some rpms. but still I am not able to get the package.

I developed my whole project in php_pgsql package in windows and i faced this issue when tried to shift from Windows to Linux. please help to solve this. thank you.

Telen Stanley
  • 310
  • 1
  • 6
  • 16

2 Answers2

2

In order to install that package, you'll need to remove the excluding rule for php in /etc/yum.conf.

Then install the package :

yum update
yum install php-pgsql

Hope it helps.

JazZ
  • 4,469
  • 2
  • 20
  • 40
0

The accepted answer did not help me, the official link did

  1. Install CentOS SCLo RH repository:

    sudo yum install centos-release-scl-rh

  2. Install rh-php72-php-common rpm package:

    sudo yum install rh-php72-php-common

Reference: https://centos.pkgs.org/7/centos-sclo-rh-x86_64/rh-php72-php-common-7.2.24-1.el7.x86_64.rpm.html#download

Sami
  • 8,168
  • 9
  • 66
  • 99