1. Apache와 MariaDB 설치
#yum -y install httpd mariadb mariadb-server
#systemctl enable httpd //apache웹서버 자동부팅 설정
#systemctl start httpd //웹서버 실행
#systemctl enable mariadb //mariadb 자동부팅 설정
#systemctl start mariadb //디비서버 실행
2. PHP7.2 설치
/* epel 와 remi 저장소 설치 */
#yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
#yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
/* php7.2 와 필요한 모듈들을 설치 */
#yum --enablerepo epel --enablerepo remi-php72 install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo php-common php-devel php-imap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-intl php-imagick php-pdo php-soap php-fpm
3. DB서버 초기세팅
#mysql_secure_installation
4. 로컬에서만 디비서버에 접속가능하게 설정
/* vi 혹은 mc 로 /etc/my.cnf.d/myconfig.cnf 파일편집
#vi /etc/my.cnf.d/myconfig.cnf
/* 아래내용을 파일에 입력하고 저장 */
[server]
bind-address=127.0.0.1
/* 디비서버 재부팅 */
#systemctl restart mariadb
'서버관리 > Linux' 카테고리의 다른 글
CentOS 7/8을 VPN서버로 세팅하기 (0) | 2022.11.24 |
---|---|
리눅스 공부를 위한 가상환경 세팅하기 (0) | 2022.05.25 |
YII2 Framework 으로 개발된 사이트를 서버이전하는 방법 (0) | 2019.08.03 |
PHP7.2에 memcache 모듈 설치 (0) | 2019.07.23 |
CentOS 6/7 에서 PHP 7.2 로 업그레이드 하기 (0) | 2019.07.23 |