Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Monday, November 25, 2013

Error: php53-common conflicts with php-common when installing php53-xml on CentOS 5

I was trying to install php53-xml on CentOS 5.5. But instead I encountered the error instead. I', assuming  you have activated the webtatic repo and install the rest of the php 5.3 components like the How to yum install PHP 5.3 for CentOS 5

php53-common-5.3.3-21.el5.i386 from base has depsolving problems
  --> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

The issue of the problem is that the current PHP from webtatic is 5.3.27, but the one from yum php53-xml is 5.3.3 which is higher. To solve the issue, you have to use the php-xml from webtatic

# yum install  php-xml

Wednesday, November 20, 2013

How to yum install PHP 5.3 for CentOS 5

There is interesting article from Rackspace How to install/upgrade PHP 5.3 for CentOS 5.x

Step 1: Basically, you have to install a repository "webstatic" which is found at 
# wget http://repo.webtatic.com/yum/centos/5/latest.rpm
# rpm -Uvh latest.rpm
# yum check-update

Step 2: Enable WebStatic (enabled=1)
[webtatic]
name=Webtatic Repository $releasever - $basearch
#baseurl=http://repo.webtatic.com/yum/centos/5/$basearch/
mirrorlist=http://mirror.webtatic.com/yum/centos/5/$basearch/mirrorlist
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-andy

Step 3a: Do a Yum Install
# yum install php php-cli php-gd php-mysql php-mbstring

Step 3b: If you are upgrading, do a yum upgrade
# yum upgrade php

Step 4: Restart the Web Server
# service httpd restart

Step 5: Check the PHP version
[root@web ~]# php -v
PHP 5.3.27 (cli) (built: Jul 13 2013 22:19:28)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies

Thursday, February 14, 2013

Installing PHP 5.4 on CentOS 5

First thing first, install the Repository as listed in Useful Repositories for CentOS 5 especially
IUS Community Repository.

Once you have installed repositories, do the following
#  yum install php54 php54-common php54-devel