2016-07-28 7 views
-2
작동하지 않습니다

이 제대로 실행되지 않은 지정된 PHP EXE 파일 :Composer는 현재 설정

C:\xampp\php\php.exe

당신의 명령 줄 PHP에서 사용하는 php.ini은 다음과 같습니다 C:\xampp\php\php.ini

프로그램 출력 :

경고 : PHP 시작 : mongo : 모듈을 초기화 할 수 없습니다.
모듈 com 모듈 API로 쌓여 = 20121212
PHP 모듈 API로 컴파일 = 20131226이 옵션은 0

업데이트

작곡가는 PHP에서 MongoDB의 확장을 찾을 수없는 라인에 알 수없는에서 일치시킬 필요가

C:\wamp\www\phpmongodb>composer require "mongodb/mongodb=^1.0.0" 
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug 
./composer.json has been updated 
Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Your requirements could not be resolved to an installable set of packages. 

    Problem 1 
    - mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system. 
    - mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system. 
    - mongodb/mongodb 1.0.1 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system. 
    - mongodb/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system. 
    - mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system. 
    - Installation request for mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1, 1.0.2]. 

    To enable extensions, verify that they are enabled in those .ini files: 
    - C:\wamp\bin\php\php5.5.12\php.ini 
    You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. 

Installation failed, reverting ./composer.json to its original content. 
+1

원래 질문을 새 질문으로 바꿨습니다. 그렇게하지 마! 원본 질문이 표시되고 새 콘텐츠가 업데이트로 추가되도록 편집을 되돌 렸습니다. –

답변

0

경고 : PHP 시작 : 몽고 : 모듈을 초기화 할 수 없습니다 모듈 모듈 API로 컴파일 = 20121212 PHP 모듈 API = 20131226 이 옵션으로 줄에 알 수없는에서 일치시킬 필요가 컴파일 0

문제

이것은 PHP 확장 설치 문제입니다.

오류는 PHP 확장 mongo이 (가) 귀하의 PHP 버전과 맞지 않는다는 것을 의미합니다. 호환되지 않습니다.

솔루션

그런 다음, 작성자와 다른 모든 PHP CLI 응용 프로그램은 정상적으로 작동해야합니다.업데이트 된 질문 이제

the requested PHP extension mongodb is missing from your system

에 대한

대답, MongoDB를가 없습니다 :

  • 드롭 php_mongodb.dll 확장 폴더
  • 편집하여 PHP에

    1. 다운로드 .ini 확장자를 포함하십시오.