08.21.2019

Install PHP 7.2 and MySQL 8.0 on Centos 7 using rpm

The earth till cycling, technology is running, we need to follow the world

In this article I will use repo repository to install newest PHP 

Remi repository need epel-release el7 for its dependency

First, install epel-release:

yum install epel-release

now we can add remi repository

rpm -Uvh https://rpms.remirepo.net/enterprise/remi-release-7.rpm

Ready now

We can start install latest PHP on your Centos server

yum --enablerepo=remi,remi-php72 install php php-common php-devel php-mysql php-mbstring composer

Next we will install Latest MySQL on your Centos server by mysql repository

Add mysql repository

rpm -Uvh https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm

yum insall mysql-community-server

systemctl start mysqld

You can find default password by 

cat /var/log/mysqld.log | grep password

Change MySQL password by secure installation

mysql_secure_installation

Now we are ready for development

Happy coding

Leave a comment