일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- JS
- MAC
- 백수일지
- EACCES
- MariaDB
- remotessh
- React
- frontend
- error
- javascript
- 오류
- srollIntoView
- WINDOWS10
- reactjs
- 프론트엔드
- 자바스크립트
- scroll
- Spring
- Linux
- java
- 설치
- vscode
- 사용자화면
- Ubuntuos
- 손쉬운사용키보드
- 리눅스
- eclipse
- Ubuntu에 Docker
- apache
- 손쉬운 사용 키보드
- Today
- Total
평범한 이야기
CentOS + PHP + MariaDB 설치하는 방법 본문
1. Apache + PHP + MariaDB ( APM ) 설치
1) root 계정으로 변경
# su
2) yum install APM
- APM 이란, 웹 서버 소프트웨어인 Apache, 동적 웹 페이지용 언어 PHP, DBMS Mysql의 조합을 가리키는 단어.
주로 Linux 에서 많이 사용.
- 전부 오픈소스이며 Linux 에서 사용하게 될 경우 LAPM 이라 함.
- 최근은 Apache 보다는 NGINX 서버를 더 많이 사용하는 경우가 있어 LEMP 라는 말도 사용함.
# yum install httpd php mariadb-server php-mysql
혹시! yum install 시 아래와 같은 Error 가 발생할 경우
# rm -rf /var/run/yum.pid
yum.pid 를 지워주고 다시 진행하면 정상적으로 됨!
3) httpd Apache 상태 확인
# systemctl status httpd
4) httpd.service 와 mariadb.service 활성화
# systemctl enable httpd.service
# systemctl enable mariadb.service
5) httpd.service 와 mariadb.service 시작
# systemctl start httpd.service
# systemctl start mariadb.service
6) firewall(방화벽) 정책 설정
# firewall-cmd --permanent --add-service=http
# firewall-cmd --permanent --add-service=https
# firewall-cmd --reload
--permanent : 영구적으로 방화벽 포트를 열어주는 것.
--reload : 적용된 정책 초기화 하는 것 (단, --permanent 적용된 설정은 초기화 안됨)
참고 : https://server-talk.tistory.com/332
CentOS/방화벽 - Firewalld - 런타임(Run Time), 영구적(Permanent 적용해 보기
CentOS/방화벽 - Firewalld - 런타임(Run Time), 영구적(Permanent) 적용해 보기 이번 포스팅에서는 Firewalld 에서 정책 적용 방식 중 일시적(Run Time) 방식과 영구적(Permanent) 방식이 있습니다 일시적(Run..
server-talk.tistory.com
7) MariaDB 설정
# mysql_secure_installation
8) Apache 적용된 것 확인을 위해 ip주소 알아보기
# hostname -I
완료! 일단 여기까지!!
'컴퓨터 속 이야기 > Linux' 카테고리의 다른 글
Docker, Ubuntu 에 빠지다: Docker 설치 on Ubuntu (0) | 2024.02.28 |
---|---|
CentOS + Apache + SSL 적용 (0) | 2021.07.06 |
[리눅스Linux] 내가 활용해 본 명령어 (0) | 2021.02.09 |
[리눅스 명령어] IP 확인할 때는 ifconfig !!! (0) | 2021.01.12 |