The actions indicated in this article are purely advisory in nature, before performing any actions it is recommended create a backup VPS.
yum install epel-release rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
After connecting the repository, run the command:
php -v
yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring
yum remove php-common
yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring
yum install yum-plugin-replace yum replace php-common --replace-with=php56w-common
yum install epel-release rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
After connecting the repository, run the command:
php -v
yum install -y php70w php70w-opcache php70w-xml php70w-mcrypt php70w-gd php70w-devel php70w-mysql php70w-intl php70w-mbstring
yum remove php-common
yum install -y php70w php70w-opcache php70w-xml php70w-mcrypt php70w-gd php70w-devel php70w-mysql php70w-intl php70w-mbstring
yum install yum-plugin-replace yum replace php-common --replace-with=php70w-common