2017-01-20 3 views
1

안녕하세요. Windows OS에 PHP 7.1.1을 설치했으며 PHP의 종속성 관리자로도 설치했습니다. 그럼 내가 Laravel 명령을 사용하여 설치 :XAMPP없이 Windows에 Laravel 설치

** 설치 laravel :

composer global require "laravel/installer"

그러나 그 후 나는 명령

composer create-project --prefer-dist laravel/laravel test_blogs

을 사용하여 프로젝트를 만들려고 내가받을 다음과 같은 오류

/laravel (v5.3.16) - laravel/laravel (v5.3.16) 설치 캐시에서로드 중 test_blogs에 프로젝트 생성

php -r "file_exists('.env') || copy('.env.example', '.env');" 'php' is not recognized as an internal or external command, operable program or batch file. Script php -r "file_exists('.env') || copy('.env.example', '.env');" handling the post-root-package-install event returned with error code 1**

여기서 한가지 언급 할 것은 XAMPP 또는 WAMPP를 사용하지 않는 것입니다. 그리고 현재 MySQL은 또한

+1

가능한 중복 http://stackoverflow.com/questions/31291317/php-is-not-recognized-as-internal-or-command-in-command-prompt) – castis

+0

왜 xampp 또는 mysql을 사용하여 Laravel을 설치하겠습니까? –

+0

왜냐하면 난 일할 필요가 없기 때문입니다. 데이터베이스와 함께. 나중에 서버로 실행합니다. –

답변

0

이 generaly 창에 즉, 사용자의 OS의 PATH 변수에

Go to MyComputer->properties->Advanced system setting >Environment Variables> Select PATH and Click Edit

를 PHP 실행 파일 경로를 추가하고 라인과 저장의 PHP 끝의 경로를 삽입 내 시스템에 설치되어 있지 그것.

가 당신에게 PHP 버전을 제공해야합니다 당신의 CMD를 다시 시작하고 php -v을 입력

[PHP는 명령 프롬프트에서 내부 또는 외부 명령으로 인식되지 않습니다 (의
+0

@msonowal에 감사드립니다. 그것은 일했다!! –

+0

나는 이미 upvoted하지만 내 명성이 15 미만이기 때문에, 당신은 직접 반사를 볼 수 없지만 나는 그것이 장기적으로 전반적인 반성을하고 응답에 다시 한번 감사한다고 생각한다. –

+0

@dream_chaser 그래, 고마워. 그걸 받아 들일 수 있다면 – msonowal