IT/PHP

[PHP] Window 에 Composer 설치 (설치시 ssl 관련 오류해결)

월공 2021. 1. 11. 14:48
728x90
300x250

getcomposer.org/download/

 

Composer

Download Composer Latest: v2.0.8 To quickly install Composer in the current directory, run the following script in your terminal. To automate the installation, use the guide on installing Composer programmatically. php -r "copy('https://getcomposer.org/ins

getcomposer.org

 

Composer-Setup.exe 설치 및 실행

 

다른거 건들필요없고 그냥 Next 를 난타하다보면, 해당 pc 에 php를 알아서 스캔해서 해당 경로를 보여준다

 

그 다음에 설치를 하면되는데 ssl 뭐시기 에러가 뜬다

 

Some settings on your machine make Composer unable to work properly. Make sure that you fix the issues listed below and run this script again: The openssl extension is missing, which means that secure HTTPS transfers are impossible. If possible you should enable it or recompile php with --with-openssl

 

알고보니 기존에 깔려있는 php.ini 내용 안에서 (윈도우 기준 C 드라이브에 Windows 안에 php.ini)

 

;extension=openssl

 

이라고 되어있는 부분 ; 주석 해제 하고나니 잘 설치가 마무리 되었다

 

설치 완료된 후에 컴퓨터 재시작 하고나서 명령 프롬프트에 composer 라고 타이핑 했을시에 아래와 같은 화면이 보여지면 설치 완료

 

 

728x90
300x250