mysql

rpm -Uvh http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm
yum install -y mysql-community-server.x86_64

php

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install -y httpd php72w php72w-cli php72w-common php72w-devel php72w-gd php72w-pdo php72w-mysqlnd php72w-mbstring php72w-bcmath php72w-redis php72w-ssl php72w-fpm php72w-pecl-redis php72w-tidy