Error installing composer installation

I am trying to install Composer on Windows 7 and XAMPP, but I get these errors / messages while installing.

The specified PHP exe file does not work correctly: C: \ XAMPP \ PHP \ php.exe

php.ini used by your PHP command line: C: \ xampp \ php \ php.ini

Repeated setup in your php.ini may cause a problem.

Program output: warning: module 'openssl' is already loaded in Unknown on line 0

At the moment I was looking for googled, but could not find the right solution or anything related to this. The closest thing was to remove the openssl comment extension in the php.ini file, but it did not work for me. To be clear, I have a very general understanding of server setup.

+6
source share
2 answers

OpenSSL loads twice. Look at your php.ini above to see openssl.dll and comment on it in one of the places.

- Farkey

+1
source

I think this is the problem that was asked here , you can follow the solution or go to the next link depending on what you need.

composer does not install on Windows 7

I understood and successfully installed Composer in "My Windows 10 PC."

Here I use two solutions.

To solve your problem, you need to follow some steps.

1st decision.

  • Find and open php.ini located in the "php" folder. In my case it is in xampp, the file is in c:\xampp\php\
  • Find "extension=php_openssl.dll"
  • ";extension=php_openssl.dll" uncomment by deleting the semicolon ";"
  • Reboot xampp, then add the extension.
  • Try again, now you can install the composer.

2nd solution (if the above solution does not work for you, go to the solution below.)

This works in my case.

  • Find and open php.ini located in the "php" folder. In my case it is in xampp, the file is in c:\xampp\php\
  • Open SHELL from the Xampp launcher by clicking on the shell button.
  • Write php in the shell and press enter
  • If you get some kind of test message in your shell, as shown below. enter image description here
  • Then you should fix this security message by commenting out all of these extensions in your php.ini . (Actually, the reason for these warning messages is that more than once this extension is enabled or you can say un-commented in the php.ini ).

    An example that is in my case.

    a). You can see in the image above, there is a warning for curling.

     Module 'curl' already loaded in Unknown on line 0 . 

    b) To fix this find php_curl.dll file in your php.ini and comment on this extension by adding a semicolon ";" before this extension, for example, this ;extension=php_curl.dll

Follow the instructions above if you have several warnings for each extension until you receive some kind of warning in your shell.

  1. Reboot xampp, then add the extension.
  2. Try again, now you can install the composer.

Hope I can solve your problem.

What are all people. Happy coding !!! (amitamie.com) :-); -)

+7
source

Source: https://habr.com/ru/post/1013801/


All Articles