apm설치
1. mysql (mariadb설치)
# yum -y install mariadb-server mariadb
시작 서비스 등록
# systemctl start mariadb.service
# systemctl enable mariadb.service
2. apache와 php의 설치
# yum -y install httpd
# yum -y install php
# yum -y install gd gd-devel
# yum -y install libxml2 libxml2-devel
# yum -y install openssl openssl-devel
# yum -y install gmp gmp-devel
# yum -y install mhash mhash-devel
# yum -y install libmcrypt libmcrypt-devel
# yum -y install php-mysqlnd
# yum -y install php-devel
# yum -y install php-gd
# yum -y install php-mbstring
# yum -y install php-mhash
# yum -y install xml-common
# yum -y install epel-release
# yum -y update
시작 서비스 등록
# systemctl start httpd.service
# systemctl enable httpd.service
3. 방화벽등록
#firewall-cmd --permanent --zone=public --add-service=http
#firewall-cmd --reload
php.ini 설정
vi /etc/php.ini
외부에서 접근할수 있도록 80포트를 연다.
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
/etc/init.d/iptables save
/etc/init.d/iptables restart
CentOS 8.2.2004 Tested