cenos 6 php5.3.3 php 5.6.4


Remi Epel

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm && rpm -Uvh epel-release-latest-6.noarch.rpm

wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm && rpm -Uvh remi-release-6*.rpm

 

vi  /etc/yum.repos.d/remi.repo

enabled=1

yum upgrade php*

重啟httpd

service httpd restart

 

echo "<?php phpinfo()?>" > /var/www/html/info.php

http://ha.shsps.kh.edu.tw/info.php