rahulserver
rahulserver

Reputation: 11225

Unable to find php.ini file while trying to install composer

I just downloaded php for windows from http://windows.php.net/download#php-5.6 ( VC11 x86 Non Thread Safe (2015-Oct-29 21:57:41) and zip file of size 20.22MB).

Then I added the php to my PATH variable. So the PATH variable looks like this:

...; D:\MySoftwares\php\PHP5_6

The PHP5_6 directory contains the php.exe and other files.

I am trying to install composer, but I get this error in screenshot: enter image description here

I followed various stack overflow posts and they seem to suggest uncommenting the line that says ;extension=php_openssl.dll in file php.ini

Unfortunately for me, I can not see any php.ini file in the PHP5_6 directory. I see php.ini-production and php.ini-development files.(I uncommented these lines in both, but no results)

So how do I go ahead to install composer?

Upvotes: 1

Views: 3877

Answers (1)

user5542121
user5542121

Reputation: 1053

Choose either php.ini-production or php.ini-development and rename it to php.ini. Those are default configurations, with suggested settings for each kind of environment. As it seems you are in development, so probably best to take the php.ini-development.

Upvotes: 2

Related Questions