본문 바로가기

IT

[CentOS8] APM설치하기 (apache+php+mariadb)

이번에는 제목과 같이 CentOS8에 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

설치후 접속화면입니다.