hare·2023년 11월 17일
0

php, laravel, composer 설치 (에러해결)

라라벨 설치

선행

  1. php 설치
    a. 로컬드라이브로 폴더 이동해줌
    b. php.ini.dev~ 파일 열어 수정해주기 - 아래 블로그 3번 참고 - date.timezone 부분은 안해도 될 것 같음(나중에 에러났음)
    참고- Windows-10-64bit-환경-PHP-설치하기
  2. composer 설치
    참고- 컴포저(Composer)란? - 윈도우 버전 설치하기

[에러] Failed to download laravel/laravel from dist

Failed to download laravel/laravel from dist: The zip extension and unzip/7z commands are both missing, skipping.
PHP error: "The zip extension and unzip command are both missing, skipping."
extension=zip 에서 세미콜론 삭제 후 해결

composer create-project laravel/laravel:^9.0 example-app
cd example-app
php artisan serve ---? 에러발생

참고- Failed to open stream: No such file or directory in

compose install

에러 발생 → 하단의 경로로 이동하여 ;extension=fileinfoextension=fileinfo로 변경하고 저장한뒤 실행

참고- Error: To enable extensions, verify that they are enabled in your .ini files 해결

php artisan serve

에러 발생

초록 박스encryption key 생성 버튼 클릭

다시 실행해보기 → OK

설치완료

다시 php artisan serve해보고 이 창이 뜨면 셋업은 끄ㅡㅌ~~~!

profile
해뜰날

0개의 댓글