I am trying to connect to a PostgreSQL Database with PHP.. PHP was already installed. When I tried to execute the following code on the Command Line (Centos) the error below returns
yum install php-pgsql
Transaction Check Error: file /etc/php.ini from install of php-common-5.3.3-27.el6_5.x86_64 conflicts with file from package php54-common-5.4.24-1.ius.centos6.x86_64 file /usr/lib64/php/modules/curl.so from install of php-common-5.3.3-27.el6_5.x86_64 conflicts with file from package php54-common-5.4.24-1.ius.centos6.x86_64 file /usr/lib64/php/modules/fileinfo.so from install of php-common-5.3.3-27.el6_5.x86_64 conflicts with file from package php54-common-5.4.24-1.ius.centos6.x86_64 file /usr/lib64/php/modules/json.so from install of php-common-5.3.3-27.el6_5.x86_64 conflicts with file from package php54-common-5.4.24-1.ius.centos6.x86_64 file /usr/lib64/php/modules/phar.so from install of php-common-5.3.3-27.el6_5.x86_64 conflicts with file from package php54-common-5.4.24-1.ius.centos6.x86_64 file /usr/lib64/php/modules/zip.so from install of php-common-5.3.3-27.el6_5.x86_64 conflicts with file from package php54-common-5.4.24-1.ius.centos6.x86_64
I also tried to remove first php with
yum erase php54
and install it again with
yum install php54 with pgsql
but it returns the same error.
I couldn't understand what I should fix?