سؤال

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?

هل كانت مفيدة؟

المحلول

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.

نصائح أخرى

Run:

$ php --ini

To see which php.ini is used in CLI (this can be different from the ini file used on the web). You should go to that ini file and enable the extension there.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top