---
title: "解决CentOS 更新php53时，mysql错误"
author: "friping"
date: "2013-07-08T00:08:36Z"
tags: []
categories: ["开源软件"]
slug: "centos-php53-mysql"
draft: false
lastmod: "2013-07-08T00:08:36Z"
id: 1901049
url: "https://friping.iteye.com/blog/1901049"
---

1、首先把原本的PHP版本删除

 

\# yum remove php*

 

2、查看一下是否删除

 

\# rpm -q php

 

删除成功：package php is not installed

 

3、安装PHP53

 

\# yum -y install php53*

 

注意：

 

php53-odbc64-5.3.3-2.el5.x86\_64 from base has depsolving problems

  --&gt; php53-odbc64 conflicts with php53-odbc

 Error: php53-odbc64 conflicts with php53-odbc

  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.

 

\# yum -y install php53* --skip-broken

 

安装成功会最后出现Complete!

 

4、查看PHP版本

 

\# rpm -q php53

 php53-5.3.3-13.el5\_8

 

5、启动PHP与MYSQL

 

\# service httpd start

 

\# service mysqld start