0
My operating system has two Apaches running two phps (5 and 7.1 respectively). I am trying to install Composer for PHP7, but it is 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 for php7 it works normal bringing phpinfo, but in Composer gives error.
If I try for the command line it is as if openssl is not activated, but it is
Gives the following message when trying the command below:
php -r "copy('https://getcomposer.org/installer', 'Composer-setup.php');"
Warning: copy(): Unable to find the wrapper "https" - Did you Forget to enable it when you configured PHP?
Delete the php5 installation
– lazyFox
But I need both
– adventistaam
But even so, it worked, I cut the folder of PHP5 to another and tried again and it worked so I went back again the folder of PHP5, and it worked normally, thanks
– adventistaam
From what I understand you need to force the call to php.ini from php 7, you should have an environment variable defined with the installation of php5. Check the environment variables
– lazyFox
but it was precisely in the environment variables php7
– adventistaam
@lazyFox add your comment as a reply to
Apague a instalação do php5
– adventistaam
A weak bit the answer, but soon it is recorded.
– lazyFox