개발/Today I Learned

[스터디] mac에서 php, Xdebug, ssh2 순서대로 설치

soohkang 2020. 7. 22. 08:35
728x90

한번에 설치된 것이 아니어서 설치여정을 모두 캡쳐하지는 못했다.

 

기억나는대로 순서를 정리해본다. 결론은 mac 환경변수 설정이 중요하다는 것!

 

1. brew로 php 설치한다.

 

2. xdebug 설치는 아래 블로그에서 도움을 받았다.

https://iidaroo.tistory.com/entry/PHPmacOSxdebug-%EC%B5%9C%EC%8B%A0-%EB%B2%84%EC%A0%84%EC%9C%BC%EB%A1%9C-%EC%84%A4%EC%B9%98%ED%95%B4%EB%8F%84-%EA%B3%84%EC%86%8D-%EC%98%88%EC%A0%84%EA%BA%BC%EA%B0%80-%EB%82%A8%EB%8A%94-%EB%B2%84%EA%B7%B8

 

[PHP][macOS]xdebug 최신 버전으로 설치해도 계속 예전 버전으로 표시되는 문제

http://rob-santoro.com/how-to-php-mac-catalina-setup/ 일단 php brew에서 삭제하고 아래의 폴더들도 삭제해줬다. $ brew uninstall php $ rm -Rf /usr/local/etc/php/* 그리고 다시 brew install php로 설치한..

iidaroo.tistory.com

 

3. libssh2 는 아래 블로그를 참고하자.

https://www.thetopsites.net/article/50742206.shtml

 

SSH2 for PHP7 MacOS?

SSH2 for PHP7 MacOS? When trying to use ssh2_sftp($this->con); PHP 7.1.7 thinks Im looking for a function in the class. After some reading, I found that SSH2 needs to be installed from PECL ( http://php.net/manual/en/wrappers.ssh2.php ) When I went to do t

www.thetopsites.net

 

 

 

 

1 ~ 3 번 뿐이지만 그 과정은 배움의 연속이었다 ! 재밌다 !