1.使用yum安装LAMP:
[root@linux ~]# yum install httpd mysql-server php php-devel php-mysql
2.将PHP 5.1.6升级到PHP 5.2.9:
[root@linux ~]# wget http ://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
[root@linux ~]# wget http://rpms.famillecollet.com/el5. i386/remi-release-5-6.el5.remi.noarch.rpm
[root@linux ~]# rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
最后执行
[root@linux ~ ]# yum --enablerepo=remi update php
或全部更新包括mysql
[root@linux ~]# yum --enablerepo=remi update
3.安装php-mbstring(这一步是为了安装phpmyadmin):
[root@linux ~] # yum --enablerepo=remi install php-mbstring
4.更新完毕后以PHP命令检视版本:
[root@linux ~]# php -v
评论专区