安装完CentOS及apache和php后,上传了phpmyadmin,运行后出现提示 PHP 5.2+ is required.
升级方法如下:
添加额外源:
# rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
# vim /etc/yum.repos.d/utterramblings.repo
utterramblings.repo的文件内容为:
[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
保存,退出。执行yum update php即可将PHP升级到PHP5.2
升级方法如下:
添加额外源:
# rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
# vim /etc/yum.repos.d/utterramblings.repo
utterramblings.repo的文件内容为:
[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
保存,退出。执行yum update php即可将PHP升级到PHP5.2