Search code examples
phpwampservercomposer-phpgit-bashphp-ini

Load php.ini to terminal


I'm using Git Bash terminal, php 5.4.10, OpenServer (wamp), windows 7

I am trying to load some library by Composer, but I can not because it says:

enter image description here

Kinda weird because curl is working at php

enter image description here

but, for some reasons, php.ini file was not loaded to git bash terminal.

enter image description here

Why? How I can init php.ini at terminal and made it work?


Solution

  • in your phpinfo() web output look for the loaded php.ini file, then start PHP with it

    php -c c:\windows\apache2\php.ini

    for example.

    You might also consider simply copying the web ini file to the location it's being looked for at the command line.