본문 바로가기

TOOL

[wordpress] 시작하기(apm setting in Linux)

728x90

*iMac 환경에서 세팅 하였습니다.*



< 1. 시작하기 >


- 워드프레스 홈페이지에 나온 사용법


https://codex.wordpress.org/ko:Getting_Started_with_WordPress




- 클라이언트와 서버간의 관계와 http의 의미 등 기초적인 지식 부터 워드프레스를 좀 더 쉽게 사용할 수 있게 도와주는 사이트


https://wpbox.kr/wordpress-manual/install/ 




- 워드프레스 설치 후 가장 먼저 해야하는 설정 이란 내용의 헬퍼 사이트


https://ezwebmis.com/%EC%9B%8C%EB%93%9C%ED%94%84%EB%A0%88%EC%8A%A4-%EC%84%A4%EC%B9%98%ED%9B%84-%EA%B0%80%EC%9E%A5-%EB%A8%BC%EC%A0%80-%ED%95%B4%EC%95%BC%ED%95%A0-%EA%B8%B0%EB%B3%B8-%EC%85%91%EC%97%85%EB%93%A4/




- 라이트 세일 서버에 파일질라로 접속하는 방법


https://swiftcoding.org/filezilla-connect




- 1. wordpress.zip 설치




-2. aws lightsail에 wordpress 설치하기


https://swiftcoding.org/wp-lightsail




- 3. 터미널로 aws lightsail 계정 접속하기



호스팅이 아닌 aws 로 서버를 할당 받았다면 mysql 설치를 위해 터미널을 실행하여 명령어로 putty를 설치해야 한다.


keyfile 위치를 상세하게 입력해야하니 경로가 복잡하다면 단순한 경로에 위치해 두는것이 좋다.



https://swiftcoding.org/server-connection#cli-ssh


-> 2) CLI 프로그램을 이용해 서버로 접속하기



https://code.i-harness.com/ko-kr/q/b9465c


-> php 실행 (answer의 첫번째 줄 입력)




- etc. wordpress로 개발 시작하기


https://swiftcoding.org/wp-web-app








< 직접하기 >


1. 터미널로 aws lightsail 계정 접속하기 


command + space : terminal.app 실행 -> 'sudo su - '로 root 권한으로 접속 -> chmod 600 pem_key_file_경로 -> 

ssh -i pem_key_file_경로 서버사용자이름@해당IP주소



2. aws lightsail 계정에 apm 설치하기 : 버전 확인으로 여부를 확인 후 설치 되어 있지 않으면 설치


(1) 아파치 설치apachectl -v -> (없을 경우 : The program 'apachectl' is currently not installed. You can install it by typing:

sudo apt install apache2) 그러면 sudo apt install apache2 입력


(2) php 설치 및 실행 : php -v -> (없을 경우 : The program 'php' can be found in the following packages: * php7.0-cli * hhvm)  그러면 sudo apt install php7.0 입력

실행 -> sudo apt-get install php libapache2-mod-php


(3) mysql 설치brew install mysql -> (The program 'brew' is currently not installed. You can install it by typing:

sudo apt install linuxbrew-wrapper) 그러면 sudo apt install linuxbrew-wrapper -> 다시 brew install mysql 입력후 linuxbrew script 설치 동의

-> mysql.server start -> (mysql.server: command not found) 그러면 mysql -v -> (The program 'mysql' can be found in the following packages: * mysql-client-core-5.7 * mariadb-client-core-10.0 * Try: sudo apt install <selected package>) 그러면 sudo apt install mysql-client-core-5.7 입력


확인 : ll 




(직접하는데로 업데이트 예정입니다.)