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-releaseInstall remi repo:
Centos 6
rpm -Uvh
http://rpms.famillecollet.com/enterprise/remi-release-6.rpmCentos 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.rpmCentos 7
rpm
-ivh https://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpmInstall MySQL
yum install mysql-community-serverservice mysqld startFind temporary root password
grep 'temporary password' /var/log/mysqld.logmysql_secure_installationChange root password then enjoy