#!/bin/bash wget -O /etc/yum.repos.d/Rocky-Extras.repo http://init.ncloud.com/server/linux/repo/rocky8/Rocky-Extras.repo yum clean all yum -y install httpd php mariadb-server php-mysqlnd redis sleep 60 cd /var/www/html wget https://kr.object.ncloudstorage.com/ncp-manual/ncp/ncp-lab.tgz tar xvfz ncp-lab.tgz /usr/bin/cp -rf php.conf /etc/httpd/conf.d/php.conf /usr/bin/cp -rf www.conf /etc/php-fpm.d/www.conf systemctl enable mariadb systemctl enable httpd systemctl enable php-fpm systemctl start mariadb systemctl start httpd systemctl start php-fpm