My operating system has two Apaches running two phps (5 and 7.1 respectively). I'm trying to install the composer for PHP7, but it's giving the following message:
The PHP exe file you specified did not run correctly: C: \ PHP7 \ php.exe
The php.ini used by your command-line PHP is: C: \ PHP5 \ php.ini
A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist.
If I type in localhost: 81 which is port to php7 it works normally bringing the phpinfo, but in the composer it gives error.
IfItrythecommandlineit'sasifopensslisnotenabled,butit's
Givethefollowingmessagewhentryingthecommandbelow:
php-r"copy (' link ', 'composer-setup.php');
Warning: copy (): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?