-
[PHP] Mac OS Mojave에 PHP 7.2 설치하기개발도구 이야기 2019. 2. 9. 00:38반응형
기본적으로 Mac OS Mojave (10.14)에는 PHP 7.0 or PHP 7.1이 설치되어 있습니다.
하지만, 필요에 따라 PHP 7.2를 사용해야 할때는 아래와 같이 진행하면 됩니다.
1. Brew (패키지관리자) 설치
https://brew.sh/index_ko에 접속하여, 안내에 따라 Brew를 설치합니다.
(기존에 Brew가 설치되어 있다면 이 절차를 생략합니다.)
2. PHP 7.2 설치
터미널을 실행하고, 아래의 명령어를 실행합니다.
brew install php@7.2
3. 설치확인
터미널을 실행하고, 아래의 명령어를 실행하여 PHP 버전을 확인합니다.
php -v
단, 명령어를 실행했을 때 설치한 PHP 버전이 적용되지 않는 경우 아래 명령어를 실행합니다. (Brew를 통해 설치한 PHP로 Symbolic Link를 생성)
brew unlink php && brew link --force php@7.2
반응형'개발도구 이야기' 카테고리의 다른 글
Apple M1 Mac에서 Brew 사용하기 (0) 2021.01.10 Visual Studio Code 설정 동기화하기 (0) 2020.06.08 [IntelliJ IDEA] 환경설정 백업 & 복원하기 (0) 2018.10.01