08.21.2019
How to install PHP 5.6 and MySQL 5.7 on Centos
This article guides you how to install PHP 5.6 via remi and install MySQL 5.7 via yum repo
Prepare
yum install epel-release
Install remi repo:
Centos 6
rpm -Uvh
http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Centos 7
rpm
-Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Install PHP 5.6
yum --enablerepo=remi,remi-php56 install php php-common php-devel
php-mbstring php-mcrypt
Centos 6Install MySQL 5.7
rpm
-ivh https://dev.mysql.com/get/mysql57-community-release-el6-8.noarch.rpm
Centos 7
rpm
-ivh https://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
Install MySQL
yum install mysql-community-server
service mysqld start
Find temporary root password
grep 'temporary password' /var/log/mysqld.log
mysql_secure_installation
Change root password then enjoy