这里使用 Webtatic EL6的YUM源来安装php5.4,我们首页安装Webtatic EL6 YUM源
rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm
安装php5.4
yum install php54w
这里使用 Webtatic EL6的YUM源来安装php5.4,我们首页安装Webtatic EL6 YUM源
CentOS/RHEL 6.x:
1 | |
CentOS/RHEL 5.x:
1 | |
Now you can install php by doing:
1 | |
安装php其他组件
1 | |
yum 安装php的时候,用命令yum -y install php*遇到提示php53-common conflicts with php-common这个错误信息,这时候可以看到
Error: php53-common conflicts with php-commonYou could try using --skip-broken to work around the problemYou could try running: package-cleanup --problemspackage-cleanup --dupes这样的错误提示。这样在重新安装的时候 用命令 yum -y install php* --skip-broken 就可以解决问题了