Ref links only
https://www.linode.com/docs/databases/mysql/how-to-install-mysql-on-centos-7/
https://www.tecmint.com/install-php-5-6-on-centos-7/
yum install php-mysqlnd php-pgsql php-fpm php-pecl-mongo php-pdo php-pecl-memcache php-pecl-memcached php-gd php-xml php-mbstring php-mcrypt php-pecl-apcu php-cli php-pear
https://www.tecmint.com/install-php-5-6-on-centos-7/
yum install php-mysqlnd php-pgsql php-fpm php-pecl-mongo php-pdo php-pecl-memcache php-pecl-memcached php-gd php-xml php-mbstring php-mcrypt php-pecl-apcu php-cli php-pear