###Update php and install php-mysql extension
wget'https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi.repo' -O/etc/yum.repos.d/remi.repo
yum --enablerepo=remi-php56-y update php
yum--enablerepo=remi-php56 -y install php-mysql
servicephp-fpm restart
以上四行,从上到下按次序执行或保存为一文件,如update_php.sh,然后执行
chmod +x update_php.sh
再执行
./update_php.sh
即可
