PHP installation conflicts on Centos6

nodeffect

I'm new to server and linux and I ran into some problems. I'm trying to update my PHP by looking for linux commands through the net. Some commands ran perfectly but some not.

I tried using this command to install php-gd since I have this error message 'Required GD library is missing'. So, I tried to run this below:

yum install php-gd

However, it give me this error message below:

php56w-common conflicts with php-common-5.3.3-46.el6_6.x86_64

Here are some info on my server:

[root@uat ~]# rpm -ql php
package php is not installed

[root@uat ~]# rpm -qa php\*
php56w-pdo-5.6.11-1.w6.x86_64
php56w-5.6.11-1.w6.x86_64
php56w-cli-5.6.11-1.w6.x86_64
php56w-common-5.6.11-1.w6.x86_64
php56w-mysql-5.6.11-1.w6.x86_64

[root@uat ~]# rpm -Va php\*
S.5....T.  c /etc/php.ini
[root@uat ~]# which php
/usr/bin/php

[root@uat ~]# php -v
PHP 5.6.11 (cli) (built: Jul 10 2015 22:43:20)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

Do you know what have I done wrong upgrading my php? Should I remove all php files on my server and reinstall? How?

nodeffect

Solved it by removing all php using "yum remove php php-common"

and modified the filename "remi.repo" under the folder /etc/yum.repos.d like below:

[remi-php56]
name=Remi's PHP 5.6 RPM repository for Enterprise Linux 6 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/6/php56/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/6/php56/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=1
gpgcheck=1

making sure that php56 is enabled=1.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

OpenCV on CentOS6 with Java installation problems

From Dev

PHP Mail works in MAMP but not on live site (Centos6)

From Dev

Elasticsearch Installation Conflicts

From Dev

Using pg_connect returning false on php-fpm / CentOS6

From Dev

PHP header conflicts with require

From Dev

installation of compiler gfortran in centos 6

From Dev

CentOS 6 "Default" Installation Options

From Dev

Redis as service on CentOs6

From Dev

Configuring virtualenvwrapper on Centos6

From Dev

PHP Installation

From Dev

Processing Conflict: php55w-mysql-5.5.30-2.w6.x86_64 conflicts php55w-mysqlnd

From Java

Android Studio Update: Some conflicts found in installation area

From Dev

Detect calendar event overlap conflicts using PHP

From Dev

PHP strpos() function comparision of string conflicts in numbers

From Dev

Editing a common temp file in php an preventing conflicts

From Dev

PHP strpos() function comparision of string conflicts in numbers

From Dev

Zabbix web install Redhat conflicts php

From Dev

Your PHP installation does not support XML in Centos6.7

From Dev

PHP on centos 6 not working

From Dev

jsvc 1.0.15 installation on CentOS 6.x

From Dev

Ethernet interface not detected during CentOS 6 installation

From Dev

git push error on centos6

From Dev

How to change ulimit in CentOS6

From Dev

locale-gen command in centos6

From Dev

Installing snipping tool in centos6

From Dev

git push error on centos6

From Dev

Cannot upgrade git on CentOS6

From Dev

Docker run centos6 command fails

From Dev

CentOS 6.5 -- > latest 6.7 / 6.x gives Transaction Check Error noarch conflicts with file from package