Wordpress & WooCommerce 단일서버 구성 실습
[1안] 단일 서버 구성
1대의 인스턴스에 Web + PHP +DB 구성
AllnOne: 10.1.1.100
Wordpress v5.8 설치 전 준비 사항(권고)
- 웹서버: Apache HTTPD 2.4.x 혹은 nginx 1.20/1.19
- PHP v7.3 이상 -> Extensions 설치
- MySQL v5.7 이상 혹은 MariaDB v10.2 이상
CloudFormation 스택 생성
다음
클릭
t2.micro 는 WooCommerce 플러그인 설치 시 메모리 부족 등으로 설치 시 메모리 부족 등으로 설치 자체가 제대로 진행이 되지 않는다
그러므로 설치가 가능한 최소의 성능인 t3.medium로 배포가 된다
1시간당 60원 정도의 비용이 부가된다
Keyname
선택 후 다음
클릭
다음
클릭
스택 생성
클릭
웹서버 설치
1 |
|
![스크린샷 2021-08-04 오후 9 23 39](https://user-images.githubusercontent.com/87232411/128187555-73bd1895-4b8c-42db-8688-d5f30cfca860.png)
![스크린샷 2021-08-04 오후 9 23 56](https://user-images.githubusercontent.com/87232411/128187556-e3633025-747d-4a6a-a1af-ea0858d6ada3.png)
![스크린샷 2021-08-04 오후 9 24 11](https://user-images.githubusercontent.com/87232411/128187558-8312e617-5ef7-4372-ba13-a2e06e014f26.png)
Test page가 생성된 걸 볼 수 있다
PHP설치 -> PHP Extensions 설치
1 |
|
![스크린샷 2021-08-04 오후 9 25 22](https://user-images.githubusercontent.com/87232411/128187568-262a407e-65da-4e74-b02b-f2316890ca40.png)
![스크린샷 2021-08-04 오후 9 25 32](https://user-images.githubusercontent.com/87232411/128187571-70f1aed8-95c6-4ff1-97e6-5a8fbb72e394.png)
![스크린샷 2021-08-04 오후 9 27 06](https://user-images.githubusercontent.com/87232411/128187574-0f56364c-88cf-420d-922a-79e9618c8541.png)
![스크린샷 2021-08-04 오후 9 27 21](https://user-images.githubusercontent.com/87232411/128187576-08dbe0cb-7fa3-4824-9c2c-945698434018.png)
![스크린샷 2021-08-04 오후 9 27 52](https://user-images.githubusercontent.com/87232411/128187581-868d69c1-ff47-4e28-bd0e-48b87545f278.png)
![스크린샷 2021-08-04 오후 9 28 51](https://user-images.githubusercontent.com/87232411/128187583-0246b39f-5729-4b07-a04c-e10145fc17ab.png)
![스크린샷 2021-08-04 오후 9 35 30](https://user-images.githubusercontent.com/87232411/128187604-cbc078bb-f0ac-47c7-9d10-78ff40db5f19.png)
info.php 페이지가 만들어졌다
memory_limit는 128M이다
옵션) 2M 이상 크기 파일 업로드 관련 설정 및 메모리 상향 설정 -> Woocommerce 설치 시 필요
1 |
|
![스크린샷 2021-08-04 오후 9 34 05](https://user-images.githubusercontent.com/87232411/128187597-edf15904-db8f-4df8-bcbc-2434125bc067.png)
memory_limit가 128M에서 256M로 늘어났다
옵션) phpMyAdmin 설치 (실패했으니 제 게시물 말고, 직접 사이트 들어가서 맨 처음부터 실습하시는 걸 추천합니다.)
phpMyAdmin은 EC2 인스턴스의 MySQL 데이터베이스를 보고 편집하는 데 사용할 수 있는 웹 기반 데이터베이스 관리 도구이다.
1 |
|
![스크린샷 2021-08-04 오후 9 37 49](https://user-images.githubusercontent.com/87232411/128187606-aefeedd9-0cb4-4de1-8577-b3b4485f296f.png)
![스크린샷 2021-08-04 오후 9 38 07](https://user-images.githubusercontent.com/87232411/128187609-24e36e26-bfb4-4075-82b3-a7198e46e8ac.png)
![스크린샷 2021-08-04 오후 9 38 27](https://user-images.githubusercontent.com/87232411/128187611-e90777a6-6b67-413c-a24c-6ee94469d60c.png)
![스크린샷 2021-08-04 오후 9 38 43](https://user-images.githubusercontent.com/87232411/128187614-48756d15-1034-46a2-a41a-23470cbf231a.png)
![스크린샷 2021-08-04 오후 9 39 03](https://user-images.githubusercontent.com/87232411/128187616-f6f33ec8-9c16-473c-a0eb-32a107ad7e84.png)
![스크린샷 2021-08-04 오후 9 39 39](https://user-images.githubusercontent.com/87232411/128187619-07942b1d-125f-4abd-8939-b3a0cfe5d874.png)
![스크린샷 2021-08-04 오후 9 39 52](https://user-images.githubusercontent.com/87232411/128187623-30fe6d5c-c1ba-44b6-9bad-5edb6b32e563.png)
음.. 접속이 안 된다
파일은 있는데 …
디렉터리 안에 페이지는 들어가지는데 보이진 않는다.
내 개인적인 생각으로 지금 인스턴스에 Mysql이 설치가 안 되어 있는 것도 관련있는 것 같다. 다음 기회에 !
MariaDB 설치
1 |
|
![스크린샷 2021-08-04 오후 9 57 40](https://user-images.githubusercontent.com/87232411/128187630-48c02094-e6c4-4317-8bc1-eb8e0adff99f.png)
![스크린샷 2021-08-04 오후 9 58 16](https://user-images.githubusercontent.com/87232411/128187634-0adc49ac-2880-412a-9ab8-3a68e100ea94.png)
![스크린샷 2021-08-04 오후 9 58 44](https://user-images.githubusercontent.com/87232411/128187639-d9422701-46f2-480b-a821-3148203c7f42.png)
![스크린샷 2021-08-04 오후 9 59 01](https://user-images.githubusercontent.com/87232411/128187641-23891b5f-6c3e-4189-8dfb-ac69184ba207.png)
![스크린샷 2021-08-04 오후 10 01 51](https://user-images.githubusercontent.com/87232411/128187650-6dc7725a-d0f3-4862-87f5-ee8bb2897b61.png)
![스크린샷 2021-08-04 오후 10 02 03](https://user-images.githubusercontent.com/87232411/128187652-5bf6648a-7e7f-4115-a3c7-c4f5929865e6.png)
![스크린샷 2021-08-04 오후 10 02 33](https://user-images.githubusercontent.com/87232411/128187655-7a9696b0-bc26-40ee-858b-fb1d9509011e.png)
Wordpress v5.8 설치
1 |
|
![스크린샷 2021-08-04 오후 10 02 52](https://user-images.githubusercontent.com/87232411/128187657-b7ce35b6-33e2-4ad8-8c5f-563314e7286e.png)
![스크린샷 2021-08-04 오후 10 04 27](https://user-images.githubusercontent.com/87232411/128187658-caecc254-761c-4caa-b532-3d7b1b86b173.png)
![스크린샷 2021-08-04 오후 10 04 40](https://user-images.githubusercontent.com/87232411/128187661-c9e0220a-31c2-4e52-a1d2-31083c912f3f.png)
![스크린샷 2021-08-04 오후 10 04 52](https://user-images.githubusercontent.com/87232411/128187662-de257572-69d4-4a61-b0c9-7c14f9aa3b64.png)
![스크린샷 2021-08-04 오후 10 05 42](https://user-images.githubusercontent.com/87232411/128187663-76ba7f41-8446-4173-910b-b4b92766c21c.png)
![스크린샷 2021-08-04 오후 10 06 25](https://user-images.githubusercontent.com/87232411/128187671-7039fd82-1987-4a46-a0cd-e72558161cdb.png)
Wordpress 웹 접속
1 |
|
Wordpress 사이트가 만들어졌다 ㅎㅎ
관리자 정보를 입력해준다 -> 워드프레스 설치
클릭
로그인을 해준다
짜쟌
첫 글을 써보자
쨔쟌
일딴 게시물을 아무거나 작성하자 (웃긴 사진 넣을려다가 저작권 때문에 포오기이 …)
다 작성 후 -> 공개
클릭
공개
클릭
글 보기
클릭
오 글이 작성되었다
외모 변환
외모
-> 테마
클릭
새로 추가
클릭
sydney
검색
설치
클릭
활성화
클릭
쨘 테마가 바뀌었다
옵션) 외모 변환 2
Starter Sites 클릭
Import
클릭
Import
클릭
View Site
클릭
쨘 더 예뻐졌다
참고 자료: AFOS[2기] 노션 내용