1 yum -y install httpd
2 systemctl start httpd
3 systemctl enable httpd
4 yum -y install mariadb-server mariadb
5 systemctl start mariadb
6 systemctl restart mariadb
7 systemctl enable mariadb
8 vim /etc/my.cnf
9 vi /etc/my.cnf
10 mysql_secure_installation
11 rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
12 rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
13 yum search php7
14 yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
15 php -v
16 systemctl restart httpd