CentOS Yum upgrade PHP to 5.5 of the steps detailed

Source: Internet
Author: User
Tags fpm install php centos

View server PHP List

Yum List | grep php
http://dl.fedoraproject.org/pub/epel/5/x86_64/

#rpm-IVH http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

RPM-IVH http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-rpm-macros-5-7.noarch.rpm

RPM-UVH http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-rpm-macros-5-7.noarch.rpm

Add Epel Source

RPM-UVH http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Add Remi Source

# RPM-UVH http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

yum–enablerepo=remi,remi-php Install php-fpm Php-common php-devel php-mysqlnd PHP-MB

RPM-UVH http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Show need to install

Epel-release = 5 is needed by (installed) Epel-rpm-macros-5-7.noarch

Epel-release = 6 is needed by Remi-release-6.8-1.el6.remi.noarch

2, Remi

#rpm-IVH http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

Yum-y Install PHP--enablerepo=remi
Installed to 5.5

Yum--enablerepo=remi,remi-php55 install php-fpm php-common php-devel php-mysqlnd PHP-MB
Installing the GD Library

Yum Install php-gd*
Yum--enablerepo=remi,remi-php55 Install php-gd*
Loaded Plugins:fastestmirror

Loading mirror speeds from cached hostfile

* Base:mirrors.btte.net

* epel:mirrors.neusoft.edu.cn

* Extras:mirrors.btte.net

* updates:mirrors.aliyun.com

Setting up Install Process

Resolving dependencies

–> Running Transaction Check

-> Package php-gd.x86_64 0:5.3.3-48.el6_8 would be installed

–> processing Dependency:php-common (x86-64) = 5.3.3-48.el6_8 for package:php-gd-5.3.3-48.el6_8.x86_64

–> finished Dependency resolution

error:package:php-gd-5.3.3-48.el6_8.x86_64 (Updates)

Requires:php-common (x86-64) = 5.3.3-48.el6_8

installed:php-common-5.5.38-4.el6.remi.x86_64 (@remi-php55)

Php-common (x86-64) = 5.5.38-4.el6.remi

Available:php-common-5.3.3-47.el6.x86_64 (Base)

Php-common (x86-64) = 5.3.3-47.el6

available:php-common-5.3.3-48.el6_8.x86_64 (Updates)

Php-common (x86-64) = 5.3.3-48.el6_8

Could try Using–skip-broken to work around the problem

You could try Running:rpm-va–nofiles–nodigest

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.